From 7555c5354a0db4b0eafe5e9b742068f01985860c Mon Sep 17 00:00:00 2001 From: Warren Melnick Date: Mon, 29 May 2017 10:52:51 -0400 Subject: [PATCH] Move the if for GCC 4 to an elseif so it does not interfere with MacOS --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7526a71..22f1370 100644 --- 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 -- 2.31.1