1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

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
This commit is contained in:
Matthieu Patou 2010-10-28 02:12:53 +04:00 committed by Matthieu Patou
parent c6d7e6ad08
commit 5634f55cc8

View File

@ -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()