From 452dea30f6414709855d6bb96302d69bc737c566 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 12 Dec 2013 15:19:08 +0100 Subject: [PATCH] Makefile: remove odd syntax not compatible with some make versions. See issue #1448. --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index e0592710..0b4cff7a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -55,15 +55,19 @@ FINAL_LIBS=-lm DEBUG=-g -ggdb ifeq ($(uname_S),SunOS) + # SunOS INSTALL=cp -pf FINAL_CFLAGS+= -D__EXTENSIONS__ -D_XPG6 FINAL_LIBS+= -ldl -lnsl -lsocket -lpthread -else ifeq ($(uname_S),Darwin) - else +ifeq ($(uname_S),Darwin) + # Darwin (nothing to do) +else + # All the other OSes (notably Linux) FINAL_LDFLAGS+= -rdynamic FINAL_LIBS+= -pthread endif +endif # Include paths to dependencies FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src