[SCM] Samba Shared Repository - branch master updated

Matthieu Patou mat at samba.org
Wed Oct 27 16:58:02 MDT 2010


The branch, master has been updated
       via  5634f55 build: remove warnings about redifinition of boolean use -KPIC on suncc
      from  c6d7e6a Fix for bug 7755 - SMBC_getdents_ctx() ignores struct alignment rules

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 5634f55cc8d9eb0cca01f621939cee724271ecb0
Author: Matthieu Patou <mat at matws.net>
Date:   Thu Oct 28 02:12:53 2010 +0400

    build: remove warnings about redifinition of boolean use -KPIC on suncc
    
    Autobuild-User: Matthieu Patou <mat at samba.org>
    Autobuild-Date: Wed Oct 27 22:57:19 UTC 2010 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 buildtools/wafsamba/wscript |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index d705216..f134c07 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()
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list