summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-10-29 01:52:32 +0400
committerMatthieu Patou <mat@samba.org>2010-10-28 22:35:08 +0000
commit4a11cad0e063431eec9cfce385ebacdb22279712 (patch)
tree4d97746b9c841d85146e4af28a6f73780f18dc75
parent090fcb011485411d887b94c7c2a53e398766cfc9 (diff)
downloadsamba-4a11cad0e063431eec9cfce385ebacdb22279712.tar.gz
samba-4a11cad0e063431eec9cfce385ebacdb22279712.tar.bz2
samba-4a11cad0e063431eec9cfce385ebacdb22279712.zip
build: add the -fno-common flags to fix the link pb on mac os X
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Thu Oct 28 22:35:08 UTC 2010 on sn-devel-104
-rw-r--r--buildtools/wafsamba/wscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index 4c9c3e7918..7c40c8c507 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -271,6 +271,8 @@ def configure(conf):
else:
conf.ADD_CFLAGS('-fPIC', testflags=True)
+ if sys.platform == 'darwin':
+ conf.ADD_LDFLAGS('-fno-common', testflags=True)
conf.CHECK_INLINE()
# check for pkgconfig