build: make this test darwin only as it mess a bit more the freebsd build
authorMatthieu Patou <mat@matws.net>
Sat, 30 Oct 2010 16:22:22 +0000 (20:22 +0400)
committerMatthieu Patou <mat@samba.org>
Sat, 30 Oct 2010 16:50:03 +0000 (16:50 +0000)
source4/wscript

index 333079d48b00c1c348a4775b90ba22d4c46d6562..cbc0bf49ac2d5e66caab3fe631344db4ba246502 100644 (file)
@@ -86,7 +86,7 @@ def configure(conf):
     conf.check_python_version((2,4,2))
     conf.check_python_headers(mandatory=True)
 
-    if not conf.env['HAVE_ENVIRON_DECL']:
+    if sys.platform == 'darwin' and 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"):