summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_autoconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index dffc5f0bdb..8cab128595 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -457,6 +457,10 @@ def library_flags(conf, libs):
extra_ldflags = TO_LIST(getattr(conf.env, 'LDFLAGS_%s' % lib.upper(), []))
ccflags.extend(extra_ccflags)
ldflags.extend(extra_ldflags)
+ if 'EXTRA_LDFLAGS' in conf.env:
+ ldflags.extend(conf.env['EXTRA_LDFLAGS'])
+ ccflags = unique_list(ccflags)
+ ldflags = unique_list(ldflags)
return (ccflags, ldflags)
@@ -646,14 +650,6 @@ def CURRENT_CFLAGS(bld, target, cflags, hide_symbols=False):
return ret
-def CURRENT_LDFLAGS(bld, target, cflags, hide_symbols=False):
- '''work out the current loader flags. local flags are added first'''
- flags = CURRENT_CFLAGS(bld, target, cflags, hide_symbols=hide_symbols)
- if 'EXTRA_LDFLAGS' in bld.env:
- flags.extend(bld.env['EXTRA_LDFLAGS'])
- return flags
-
-
@conf
def CHECK_CC_ENV(conf):
"""trim whitespaces from 'CC'.