build: only add -fPIC if it is supported
authorAndrew Tridgell <tridge@samba.org>
Sun, 28 Mar 2010 06:11:06 +0000 (17:11 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:13 +0000 (20:27 +1000)
buildtools/wafsamba/wscript

index 1ff0fd3cb324019c23d064aa1b80db0a0d5be78b..5a24eeb28358579fefd742d0f85defc476c5f3e3 100644 (file)
@@ -119,7 +119,7 @@ def configure(conf):
         conf.env.RPATH_ON_BUILD   = False
 
     # we should use the PIC options in waf instead
-    conf.ADD_CFLAGS('-fPIC')
+    conf.ADD_CFLAGS('-fPIC', testflags=True)
 
     # check for pkgconfig
     conf.check_cfg(atleast_pkgconfig_version='0.0.0')