Move the if for GCC 4 to an elseif so it does not interfere with MacOS 19/head 20/head
authorWarren Melnick <warrenmelnick@gmail.com>
Mon, 29 May 2017 14:52:51 +0000 (10:52 -0400)
committerWarren Melnick <warrenmelnick@gmail.com>
Mon, 29 May 2017 14:52:51 +0000 (10:52 -0400)
Makefile

index 7526a71d8d0c426d570a6ddbe1eebd081cb9d90e..22f1370edf6665e0db8547cdb0cf35b80751f9cf 100644 (file)
--- a/Makefile
+++ b/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