build: make ADD_LDFLAGS() returns the flags that were added
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Feb 2011 05:13:51 +0000 (16:13 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 18 Feb 2011 04:09:46 +0000 (15:09 +1100)
this will be used by the s3 top level build to work out how to undo
the effects of -Wl,-no-undefined

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

buildtools/wafsamba/samba_autoconf.py

index 299b380a1a4d39e11c2d33b69558bcf04ee955ae..02b52df4b06f99d031e1ec1accb947d1e83c12f2 100644 (file)
@@ -645,6 +645,8 @@ def ADD_CFLAGS(conf, flags, testflags=False):
 def ADD_LDFLAGS(conf, flags, testflags=False):
     '''add some LDFLAGS to the command line
        optionally set testflags to ensure all the flags work
+
+       this will return the flags that are added, if any
     '''
     if testflags:
         ok_flags=[]
@@ -655,7 +657,7 @@ def ADD_LDFLAGS(conf, flags, testflags=False):
     if not 'EXTRA_LDFLAGS' in conf.env:
         conf.env['EXTRA_LDFLAGS'] = []
     conf.env['EXTRA_LDFLAGS'].extend(TO_LIST(flags))
-
+    return flags
 
 
 @conf