Revert "kpatch-build: fix gcc_version_check: both "GNU" and "GCC" are possible"

This reverts commit 5737028667.
This commit is contained in:
Josh Poimboeuf 2015-11-18 14:44:26 -06:00
parent f4b5eded0c
commit 7b48c4ce12

View File

@ -119,8 +119,8 @@ find_dirs() {
gcc_version_check() {
# ensure gcc version matches that used to build the kernel
local gccver=$(gcc --version | head -n1 | cut -d' ' -f2- | sed 's/GNU/GCC/g')
local kgccver=$(readelf -p .comment $VMLINUX | grep GCC: | tr -s ' ' | cut -d ' ' -f5- | sed 's/GNU/GCC/g')
local gccver=$(gcc --version |head -n1 |cut -d' ' -f2-)
local kgccver=$(readelf -p .comment $VMLINUX |grep GCC: | tr -s ' ' | cut -d ' ' -f5-)
if [[ "$gccver" != "$kgccver" ]]; then
warn "gcc/kernel version mismatch"
echo "gcc version: $gccver"