play nice with build systems that specify their own CC

FreeBSD ports system is one of these build systems and it manages -std=
settings and path to the correct compiler that may not be in PATH or called
"gcc" or "clang".
This commit is contained in:
Nikolai Lifanov 2017-05-31 13:04:58 -04:00
parent 73ce944bb2
commit c9a14d1c38

View file

@ -7,7 +7,7 @@ GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
ifeq ($(UNAME_S),Linux)
LIBS=-lrt
else ifeq "$(GCCVERSIONGTEQ4)" "1"
CC=c99
CC?=c99
endif
OBJS=main.o init.o actions1.o actions2.o score.o misc.o