]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Revert "wscript: use --as-needed only if tested successfully"
authorKarolin Seeger <kseeger@samba.org>
Thu, 11 Mar 2021 09:47:14 +0000 (10:47 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Mar 2021 09:47:14 +0000 (10:47 +0100)
This reverts commit c63f00801cae16a855aa5283fa0cc449e84577ce.

wscript

diff --git a/wscript b/wscript
index 2020c6793f0927c6c416c936c9a34d34f970e3f8..a195ac33c985b1678c74735db27f188a35912e7c 100644 (file)
--- a/wscript
+++ b/wscript
@@ -321,8 +321,7 @@ def configure(conf):
     # 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)
-
+    conf.add_as_needed()
 
     if not conf.CHECK_NEED_LC("-lc not needed"):
         conf.ADD_LDFLAGS('-lc', testflags=False)