From 7a48847f6303ea5801172a27cd7568217bf106ef Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 29 May 2015 01:51:32 +0530 Subject: Makefile: Should use libtool if required --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6df2318..f1fb0a8 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +#LIBTOOL := libtool --mode=link --tag=CC +LIBTOOL := DEBUG_CFLAGS := -O0 -ggdb -Wall -fsanitize=address -fno-omit-frame-pointer -DENCODE_DEBUG -DPLAY_DEBUG -DHEADERS_DEBUG #CFLAGS := -O0 -ggdb -Wall -fno-omit-frame-pointer -DENCODE_DEBUG CFLAGS := -O2 -Wall @@ -13,7 +15,7 @@ VPATH := debug $(CC) -c $< $(CFLAGS) $(LIBS) -o $@ $(SERVER_NAME): src/main.c $(SRC_OBJS) - $(CC) $^ $(CFLAGS) $(LIBS) -o $@ + $(LIBTOOL) $(CC) $^ $(CFLAGS) $(LIBS) -o $@ all: sst-server -- cgit v0.11.2-2-gd1dd