Explorar o código

Makefile: Fix #263, use $(CC) instead of 'gcc' for detecting the version

Max Bruckner %!s(int64=7) %!d(string=hai) anos
pai
achega
529ec06abb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -26,7 +26,7 @@ INSTALL ?= cp -a
 
 # validate gcc version for use fstack-protector-strong
 MIN_GCC_VERSION = "4.9"
-GCC_VERSION := "`gcc -dumpversion`"
+GCC_VERSION := "`$(CC) -dumpversion`"
 IS_GCC_ABOVE_MIN_VERSION := $(shell expr "$(GCC_VERSION)" ">=" "$(MIN_GCC_VERSION)")
 ifeq "$(IS_GCC_ABOVE_MIN_VERSION)" "1"
     CFLAGS += -fstack-protector-strong