aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f35bdff..c8bca47 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ CFLAGS+=-Wno-pointer-sign -Wno-sign-compare
# add -Wno-unused-result only on gcc >= 4.4
ifeq ($(GCC_MAJOR),4)
-GCCGREATERTHEN44 := $(shell expr `gcc -dumpversion | cut -f2 -d.` \>= 4)
+GCCGREATERTHEN44 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 4)
else
GCCGREATERTHEN44 := 1
endif