From 60437fd0c32b4c99c5f2d545d2f9c3eb437c0e8a Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Wed, 29 Jul 2015 11:24:52 +0300 Subject: [PATCH] Add -lrt back the exe link command. --- src/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 9dbc2778..56f77a32 100644 --- a/src/Makefile +++ b/src/Makefile @@ -228,15 +228,16 @@ tests: build_tests build_tests: CFLAGS := $(filter-out -Werror, $(CFLAGS)) build_tests: init_submodules $(TESTS) -$(PROG): $(RELEASE_OBJS) - $(LD) $^ $(LDFLAGS) -o $@ - $(LIB): LDFLAGS += -shared -Wl,-soname,$(SO).$(VER_MAJOR) $(DLL): LDFLAGS += -shared -Wl,--out-implib,$(IMPLIB) -o $@ $(DYLIB): LDFLAGS += -dynamiclib \ -current_version $(VER_MAJOR).$(VER_MINOR).$(VER_RELEASE) \ -compatibility_version $(VER_MAJOR) \ -install_name $(LIBDIR)/$@ + +$(PROG): $(RELEASE_OBJS) + $(LD) $^ $(LDFLAGS) $(LIBS) -o $@ + $(LIB) $(DLL) $(DYLIB): $(OBJS) $(LD) $^ $(LDFLAGS) $(LIBS) -o $@