Skip to content

Commit 529ec06

Browse files
committed
Makefile: Fix DaveGamble#263, use $(CC) instead of 'gcc' for detecting the version
1 parent 3349978 commit 529ec06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ INSTALL ?= cp -a
2626

2727
# validate gcc version for use fstack-protector-strong
2828
MIN_GCC_VERSION = "4.9"
29-
GCC_VERSION := "`gcc -dumpversion`"
29+
GCC_VERSION := "`$(CC) -dumpversion`"
3030
IS_GCC_ABOVE_MIN_VERSION := $(shell expr "$(GCC_VERSION)" ">=" "$(MIN_GCC_VERSION)")
3131
ifeq "$(IS_GCC_ABOVE_MIN_VERSION)" "1"
3232
CFLAGS += -fstack-protector-strong

0 commit comments

Comments
 (0)