diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-02-04 01:24:00 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-02-04 01:24:00 +0100 |
commit | cabe489a2e8e2ee7619924e447221177f4562962 (patch) | |
tree | 513699ca0eb6972c61620817579bb2b4f1907578 | |
parent | 0e12e11ed817d66ff1e9246a32931e14e4fa6700 (diff) | |
download | pcitool-cabe489a2e8e2ee7619924e447221177f4562962.tar.gz pcitool-cabe489a2e8e2ee7619924e447221177f4562962.tar.bz2 pcitool-cabe489a2e8e2ee7619924e447221177f4562962.tar.xz pcitool-cabe489a2e8e2ee7619924e447221177f4562962.zip |
Improve gcc detection for module compilation
-rw-r--r-- | driver/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/Makefile b/driver/Makefile index 83a8c46..f2c993e 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -20,8 +20,8 @@ default: echo "No compiler of $$GCC_MAJOR series is installed" ;\ exit 1 ;\ fi ;\ - GCC_VERSION=`$$CC --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | head -n 1` ;\ - if [ $$KERNEL_GCC_VERSION != $$GCC_VERSION ]; then \ + GCC_VERSION=`$$CC --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | tail -n 1` ;\ + if [ $$KERNEL_GCC_VERSION != $$GCC_VERSION -a -z "$$RELAXED_GCC_CHECK" ]; then \ echo "The $$GCC_VERSION of $$GCC_MAJOR series is installed" ;\ exit 1 ;\ fi ;\ |