diff options
author | Matthieu Patou <mat@matws.net> | 2011-04-16 01:15:51 +0400 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-26 17:16:34 +1000 |
commit | 3a88d49d12fe6c74dffe3e8d82235c71511cc07c (patch) | |
tree | c8d7b7d4a2e9a81917bb2a41a17482c9872d4cf3 /buildtools/wafsamba | |
parent | 0ffc4c51ee8cc9147c76d2ab1ba1f2f72c8107ca (diff) | |
download | samba-3a88d49d12fe6c74dffe3e8d82235c71511cc07c.tar.gz samba-3a88d49d12fe6c74dffe3e8d82235c71511cc07c.tar.bz2 samba-3a88d49d12fe6c74dffe3e8d82235c71511cc07c.zip |
waf: introduce reverse logic for allowing unknown symbols
Some os (ie OSX 10.6) forbids by default unknown symbols so in order to
allow them (for special case) we have no to remove linker option *but*
to add options to ask the linker to be more relax.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_deps.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index adeb3645ce..0bd2c6cf67 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -89,6 +89,10 @@ def build_dependencies(self): for f in self.env.undefined_ldflags: self.ldflags.remove(f) + if getattr(self, 'allow_undefined_symbols', False) and self.env.undefined_ignore_ldflags: + for f in self.env.undefined_ignore_ldflags: + self.ldflags.append(f) + debug('deps: computed dependencies for target %s: uselib=%s uselib_local=%s add_objects=%s', self.sname, self.uselib, self.uselib_local, self.add_objects) |