mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-19 11:09:47 +00:00
Makefile: Fix #263, use $(CC) instead of 'gcc' for detecting the version
This commit is contained in:
1 parent
3349978268
commit
529ec06abb
1 file changed
+1
-1
@@ -26,7 +26,7 @@ INSTALL ?= cp -a
|
|||||||
|
|
||||||
# validate gcc version for use fstack-protector-strong
|
# validate gcc version for use fstack-protector-strong
|
||||||
MIN_GCC_VERSION = "4.9"
|
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)")
|
IS_GCC_ABOVE_MIN_VERSION := $(shell expr "$(GCC_VERSION)" ">=" "$(MIN_GCC_VERSION)")
|
||||||
ifeq "$(IS_GCC_ABOVE_MIN_VERSION)" "1"
|
ifeq "$(IS_GCC_ABOVE_MIN_VERSION)" "1"
|
||||||
CFLAGS += -fstack-protector-strong
|
CFLAGS += -fstack-protector-strong
|
||||||
|
|||||||
Reference in new issue
Block a user