summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wscript
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-10-28 02:12:53 +0400
committerMatthieu Patou <mat@samba.org>2010-10-27 22:57:19 +0000
commit5634f55cc8d9eb0cca01f621939cee724271ecb0 (patch)
tree57a75758f621159edf8d838cece5b5050d8a8b5d /buildtools/wafsamba/wscript
parentc6d7e6ad08a94709264d05b9cc8f266f07bc6851 (diff)
downloadsamba-5634f55cc8d9eb0cca01f621939cee724271ecb0.tar.gz
samba-5634f55cc8d9eb0cca01f621939cee724271ecb0.tar.bz2
samba-5634f55cc8d9eb0cca01f621939cee724271ecb0.zip
build: remove warnings about redifinition of boolean use -KPIC on suncc
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Oct 27 22:57:19 UTC 2010 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba/wscript')
-rw-r--r--buildtools/wafsamba/wscript10
1 files changed, 9 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index d705216ba7..f134c07b11 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -260,7 +260,15 @@ def configure(conf):
conf.env.RPATH_ON_BUILD = False
# we should use the PIC options in waf instead
- conf.ADD_CFLAGS('-fPIC', testflags=True)
+ # Some compilo didn't support -fPIC but just print a warning
+ if conf.env['COMPILER_CC'] == "suncc":
+ conf.ADD_CFLAGS('-KPIC', testflags=True)
+ # we really want define here as we need to have this
+ # define even during the tests otherwise detection of
+ # boolean is broken
+ conf.DEFINE('_STDC_C99', 1, add_to_cflags=True)
+ else:
+ conf.ADD_CFLAGS('-fPIC', testflags=True)
conf.CHECK_INLINE()