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.
This commit is contained in:
Arttu Ylä-Outinen 2015-08-13 09:59:58 +03:00
parent cb49586d36
commit 38893d2da1

View file

@ -253,7 +253,7 @@ $(DYLIB): LDFLAGS += -dynamiclib \
-compatibility_version $(VER_MAJOR) \ -compatibility_version $(VER_MAJOR) \
-install_name $(LIBDIR)/$@ -install_name $(LIBDIR)/$@
$(PROG): $(RELEASE_OBJS) $(PROG): $(MAIN_OBJS) $(STATIC)
$(LD) $^ $(LDFLAGS) $(LIBS) -o $@ $(LD) $^ $(LDFLAGS) $(LIBS) -o $@
$(STATIC): $(OBJS) $(STATIC): $(OBJS)