]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
build: link symbols as needed
authorMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 19 May 2015 12:24:01 +0000 (14:24 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 19 May 2015 12:24:09 +0000 (14:24 +0200)
this saves space for both library and daemon

platform.mk

index e9e0d39439fa69d8f99aee6ecaacafe2a6f94da3..c510241a953490ffd06625121280860c878fa85f 100644 (file)
@@ -16,6 +16,7 @@ ifeq ($(OS),Windows_NT)
        BINEXT := .exe
 else
        UNAME := $(shell uname -s)
+       LDFLAGS += -Wl,--as-needed
     ifeq ($(UNAME),Darwin)
         PLATFORM := Darwin
         LIBEXT := .dylib