From 3c68a9158c28625e5fd04781e4f14c598a56b720 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 1 Aug 2011 16:13:38 +0200 Subject: [PATCH] LDFLAGS: add -Wl,--as-needed. reduces .so dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Let’s see if that works on all systems :) --- common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common.mk b/common.mk index d7c0c5ac..05b10611 100644 --- a/common.mk +++ b/common.mk @@ -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 system’s iconv over GNU libiconv CFLAGS += -idirafter /usr/pkg/include -- 2.39.2