From b0f41c07ffe8600433c20a038b1612c04ed29e89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 10 Sep 2015 21:31:03 +0200 Subject: [PATCH] build: use as-needed linker flag also on OpenBSD MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit OpenBSD is unusable with binaries with many superfluous libs linked in. samba-tool start times of 250 seconds without as-needed vs. 1.4 seconds with as-needed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11355 Signed-off-by: Bjoern Jacke Reviewed-by: Ralph Böhme Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Sep 11 03:37:17 CEST 2015 on sn-devel-104 --- wscript | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wscript b/wscript index a84e5d5661b2..9431e11e8362 100644 --- a/wscript +++ b/wscript @@ -166,8 +166,7 @@ def configure(conf): # allows us to find problems on our development hosts faster. # It also results in faster load time. - if not sys.platform.startswith("openbsd"): - conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) + conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) if not conf.CHECK_NEED_LC("-lc not needed"): conf.ADD_LDFLAGS('-lc', testflags=False) -- 2.34.1