summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-09-23 17:21:51 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-09-25 16:56:39 +0000
commitab232ca77f8f08879d99f88cfcd554500717075e (patch)
tree8fffc65d4e168ba94f0d9015fd81e021441c348e /wscript
parent9499db075b72b147e2ff9bb78e9d5edbaac14e69 (diff)
downloadsamba-ab232ca77f8f08879d99f88cfcd554500717075e.tar.gz
waf: Use waf function to add for -Wl,--as-needed
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Sep 25 16:56:40 UTC 2019 on sn-devel-184
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index 3e04df04080..a195ac33c98 100644
--- a/wscript
+++ b/wscript
@@ -321,7 +321,7 @@ def configure(conf):
# allows us to find problems on our development hosts faster.
# It also results in faster load time.
- conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True)
+ conf.add_as_needed()
if not conf.CHECK_NEED_LC("-lc not needed"):
conf.ADD_LDFLAGS('-lc', testflags=False)