From 38893d2da1838a84b3cbf1c4e8d216ae3b95becc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arttu=20Yl=C3=A4-Outinen?= Date: Thu, 13 Aug 2015 09:59:58 +0300 Subject: [PATCH] Use the static lib to link the program. Changes the Makefile to use the static library and additional object files as linker input instead of all the object files when linking the command line program. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index c07ec599..5406c8e6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -253,7 +253,7 @@ $(DYLIB): LDFLAGS += -dynamiclib \ -compatibility_version $(VER_MAJOR) \ -install_name $(LIBDIR)/$@ -$(PROG): $(RELEASE_OBJS) +$(PROG): $(MAIN_OBJS) $(STATIC) $(LD) $^ $(LDFLAGS) $(LIBS) -o $@ $(STATIC): $(OBJS)