build: add the -fno-common flags to fix the link pb on mac os X
authorMatthieu Patou <mat@matws.net>
Thu, 28 Oct 2010 21:52:32 +0000 (01:52 +0400)
committerMatthieu Patou <mat@samba.org>
Thu, 28 Oct 2010 22:35:08 +0000 (22:35 +0000)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Thu Oct 28 22:35:08 UTC 2010 on sn-devel-104

buildtools/wafsamba/wscript

index 4c9c3e79187d4a46a74f446ff7d0a20ee868de2f..7c40c8c5076060a2ea81385bd8cdd340c6eb5c83 100644 (file)
@@ -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