build: disable -Wl,--as-needed to try and fix the build
authorAndrew Bartlett <abartlet@samba.org>
Mon, 20 Jun 2011 11:22:59 +0000 (21:22 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Jun 2011 23:36:23 +0000 (09:36 +1000)
The issue here is that the source3 components now built as part of the
top level build do not have their depenencies fully specified, and
this causes the build to fail for many of our users.

When we fix that, we can restore this flag, so we again find that kind
of bug, which will show up for our Gentoo users regardless.

Andrew Bartlett

wscript

diff --git a/wscript b/wscript
index 52d0ea4f446acea9df62ec07d28d036cd9337b53..1fa0d8f543956c402d89f78acae095b294c37f3e 100755 (executable)
--- a/wscript
+++ b/wscript
@@ -124,8 +124,13 @@ def configure(conf):
     # 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.
-    if sys.platform != "openbsd4":
-        conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True)
+
+    # However, until the source3 waf build settles down, this needs to
+    # be disabled, as the bugs mentioned above are hitting too many of
+    # our users
+
+    #if sys.platform != "openbsd4":
+    #    conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True)
 
     if not conf.CHECK_NEED_LC("-lc not needed"):
         conf.ADD_LDFLAGS('-lc', testflags=False)