Move the if for GCC 4 to an elseif so it does not interfere with MacOS

This commit is contained in:
Warren Melnick 2017-05-29 10:52:51 -04:00
parent ae3c34084f
commit 7555c5354a

View file

@ -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