LDFLAGS: add -Wl,--as-needed. reduces .so dependencies

Let’s see if that works on all systems :)
This commit is contained in:
Michael Stapelberg 2011-08-01 16:13:38 +02:00
parent 339a7cb8c3
commit 3c68a9158c
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ LIBS += $(call ldflags_for_lib, x11, X11)
LIBS += $(call ldflags_for_lib, yajl, yajl)
LIBS += $(call ldflags_for_lib, libev, ev)
LDFLAGS += -Wl,--as-needed
ifeq ($(UNAME),NetBSD)
# We need -idirafter instead of -I to prefer the systems iconv over GNU libiconv
CFLAGS += -idirafter /usr/pkg/include