From: Marek VavruĊĦa Date: Tue, 19 May 2015 12:24:01 +0000 (+0200) Subject: build: link symbols as needed X-Git-Tag: v1.0.0-beta1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f4d8cbe1a57d27243eff61356751b54d9d1f933;p=thirdparty%2Fknot-resolver.git build: link symbols as needed this saves space for both library and daemon --- diff --git a/platform.mk b/platform.mk index e9e0d3943..c510241a9 100644 --- a/platform.mk +++ b/platform.mk @@ -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