From: Andreas Schneider Date: Mon, 23 Sep 2019 15:21:51 +0000 (+0200) Subject: waf: Use waf function to add for -Wl,--as-needed X-Git-Tag: talloc-2.3.1~670 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab232ca77f8f08879d99f88cfcd554500717075e;p=thirdparty%2Fsamba.git waf: Use waf function to add for -Wl,--as-needed Signed-off-by: Andreas Schneider Reviewed-by: Matthias Dieter Wallnöfer Reviewed-by: Alexander Bokovoy Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Wed Sep 25 16:56:40 UTC 2019 on sn-devel-184 --- 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)