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:
parent
73ce944bb2
commit
c9a14d1c38
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
LIBS=-lrt
|
LIBS=-lrt
|
||||||
else ifeq "$(GCCVERSIONGTEQ4)" "1"
|
else ifeq "$(GCCVERSIONGTEQ4)" "1"
|
||||||
CC=c99
|
CC?=c99
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJS=main.o init.o actions1.o actions2.o score.o misc.o
|
OBJS=main.o init.o actions1.o actions2.o score.o misc.o
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue