diff options
author | Matthieu Patou <mat@matws.net> | 2010-10-30 16:50:33 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2010-10-30 13:45:18 +0000 |
commit | 33b276c2f16c4ec70cf392e850558cfd6703d7e6 (patch) | |
tree | 3bba2ed6bace4a3ee973d3f49d960c1c39e08f75 /source4 | |
parent | 23b58804ba8ab2bb190758df283eacf3ec5d8787 (diff) | |
download | samba-33b276c2f16c4ec70cf392e850558cfd6703d7e6.tar.gz samba-33b276c2f16c4ec70cf392e850558cfd6703d7e6.tar.bz2 samba-33b276c2f16c4ec70cf392e850558cfd6703d7e6.zip |
build: set shared libraries flags correctly on mac os X
Diffstat (limited to 'source4')
-rw-r--r-- | source4/wscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/wscript b/source4/wscript index 45d147f8e5..333079d48b 100644 --- a/source4/wscript +++ b/source4/wscript @@ -86,6 +86,11 @@ def configure(conf): conf.check_python_version((2,4,2)) conf.check_python_headers(mandatory=True) + if not conf.env['HAVE_ENVIRON_DECL']: + if not conf.CHECK_SHLIB_W_PYTHON("Checking if -single_module is not needed"): + conf.env.append_value('shlib_LINKFLAGS', ['-single_module']) + if not conf.CHECK_SHLIB_W_PYTHON("Checking if -undefined dynamic_lookup is not need"): + conf.env.append_value('shlib_LINKFLAGS', ['-undefined', 'dynamic_lookup']) if int(conf.env['PYTHON_VERSION'][0]) >= 3: raise Utils.WafError('Python version 3.x is not supported by Samba yet') |