mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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
This commit is contained in:
parent
9499db075b
commit
ab232ca77f
2
wscript
2
wscript
@ -321,7 +321,7 @@ def configure(conf):
|
|||||||
# allows us to find problems on our development hosts faster.
|
# allows us to find problems on our development hosts faster.
|
||||||
# It also results in faster load time.
|
# 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"):
|
if not conf.CHECK_NEED_LC("-lc not needed"):
|
||||||
conf.ADD_LDFLAGS('-lc', testflags=False)
|
conf.ADD_LDFLAGS('-lc', testflags=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user