Move the if for GCC 4 to an elseif so it does not interfere with MacOS
This commit is contained in:
parent
ae3c34084f
commit
7555c5354a
1 changed files with 2 additions and 3 deletions
5
Makefile
5
Makefile
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
LIBS=-lrt
|
LIBS=-lrt
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
|
GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
LIBS=
|
LIBS=
|
||||||
endif
|
else ifeq "$(GCCVERSIONGTEQ4)" "1"
|
||||||
GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
|
||||||
ifeq "$(GCCVERSIONGTEQ4)" "1"
|
|
||||||
CC=c99 --std=gnu99
|
CC=c99 --std=gnu99
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue