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
|
||||
UNAME_S := $(shell uname -s)
|
||||
GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
LIBS=
|
||||
endif
|
||||
GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
||||
ifeq "$(GCCVERSIONGTEQ4)" "1"
|
||||
else ifeq "$(GCCVERSIONGTEQ4)" "1"
|
||||
CC=c99 --std=gnu99
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue