diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-09-20 18:19:58 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-23 10:58:02 +0200 |
commit | 2a789c8442ce730cac112eeb89c7eb497bb5cc15 (patch) | |
tree | ee06d2ced75dea5309da59e6e96116e69c4c546f /wscript | |
parent | d40fe50a6755ab701f2fe8a434f1d3331769a4c0 (diff) | |
download | samba-2a789c8442ce730cac112eeb89c7eb497bb5cc15.tar.gz |
build: Fix waf build on MacOS X
The -framework CoreFoundation is required by the charset_macosxfs module
The system/time.h header is required to access the replacement clock_gettime()
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Sep 23 10:58:02 CEST 2011 on sn-devel-104
Diffstat (limited to 'wscript')
-rwxr-xr-x | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -77,6 +77,10 @@ def configure(conf): conf.ADD_CFLAGS('-fno-common') 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 sys.platform == 'darwin': + conf.ADD_LDFLAGS('-framework CoreFoundation') + if int(conf.env['PYTHON_VERSION'][0]) >= 3: raise Utils.WafError('Python version 3.x is not supported by Samba yet') |