summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2015-09-10 21:31:03 +0200
committerKarolin Seeger <kseeger@samba.org>2015-09-15 11:08:12 +0200
commitf4bc73f8bcbac7f89b3f7d9a280948b4a07bf763 (patch)
tree0a718286a70553688aeeaf978f30b08a925bbb6a /wscript
parent7cabb4c92874a3dbbb87cdacb2c1b48798aeb164 (diff)
downloadsamba-f4bc73f8bcbac7f89b3f7d9a280948b4a07bf763.tar.gz
build: use as-needed linker flag also on OpenBSD
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 <bj@sernet.de> Reviewed-by: Ralph Böhme <rb@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Sep 11 03:37:17 CEST 2015 on sn-devel-104 (cherry picked from commit b0f41c07ffe8600433c20a038b1612c04ed29e89)
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 1 insertions, 2 deletions
diff --git a/wscript b/wscript
index f4241f16b9c..28528be06cb 100644
--- a/wscript
+++ b/wscript
@@ -169,8 +169,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)