summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'])