From 7339d1a748bdbc7a41abd456238a5a66aac64c53 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 9 Apr 2014 15:45:50 +0200 Subject: Fix detection of gcc version on Ubuntu (by Uros) --- driver/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/Makefile b/driver/Makefile index 13c3310..e353228 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -10,7 +10,7 @@ EXTRA_CFLAGS += -I$(M)/.. default: @KERNEL_GCC_VERSION=`cat /proc/version | head -n1 | cut -d " " -f 7` ;\ - GCC_VERSION=`$(CC) --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | head -n 1` ;\ + GCC_VERSION=`$(CC) --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | tail -n 1` ;\ if [ $$KERNEL_GCC_VERSION != $$GCC_VERSION ]; then \ echo "Kernel is compiled with gcc $$KERNEL_GCC_VERSION, but you are now using $$GCC_VERSION" ;\ GCC_MAJOR=`echo $$KERNEL_GCC_VERSION | cut -d "." -f 1-2` ;\ -- cgit v1.2.3