summaryrefslogtreecommitdiff
path: root/source4/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-03 10:50:16 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-03 00:35:56 +0000
commit553029b88b470362b533bbd17d028e6e61e4b8b9 (patch)
tree27b43d63467d20036b57725a8b41b22d6c8ddd6f /source4/wscript
parent2a5e5cd8fa651b819182a2c57b580ab278b4945a (diff)
downloadsamba-553029b88b470362b533bbd17d028e6e61e4b8b9.tar.gz
samba-553029b88b470362b533bbd17d028e6e61e4b8b9.tar.bz2
samba-553029b88b470362b533bbd17d028e6e61e4b8b9.zip
s4-build: use -Wl,--as-needed if supported
this makes our runtime load times smaller, and also means we find bugs that this may cause on gentoo. gentoo uses this by default Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 3 00:35:56 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/wscript')
-rw-r--r--source4/wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/wscript b/source4/wscript
index cbc0bf49ac..ac4971ca6a 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -118,6 +118,12 @@ def configure(conf):
# resolution of symbols
conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
+ # gentoo always adds this. We want our normal build to be as
+ # strict as the strictest OS we support, so adding this here
+ # allows us to find problems on our development hosts faster.
+ # It also results in faster load time.
+ conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True)
+
# we don't want PYTHONDIR in config.h, as otherwise changing
# --prefix causes a complete rebuild
del(conf.env.defines['PYTHONDIR'])