cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 529ec06abbc0aebac4ef719257d7b03efa643d64
parent 3349978268ea8f8ace9bde1cb30bce922513fbe1
Author: Max Bruckner <max@maxbruckner.de>
Date:   Sun, 29 Apr 2018 09:20:08 +0200

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

Diffstat:
MMakefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/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