From b31055189ad953e2055d99caff3f8490613b96b4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 15 Feb 2011 16:13:51 +1100 Subject: build: make ADD_LDFLAGS() returns the flags that were added 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 --- buildtools/wafsamba/samba_autoconf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buildtools/wafsamba/samba_autoconf.py') diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 299b380a1a..02b52df4b0 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -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 -- cgit