build: In some case the flags for the sun studio linker are wrong
[ddiss/samba.git] / buildtools / wafsamba / samba_conftests.py
index 49cd4ff17c7a6748efe0d60f424f269f9b795c9f..4811614ab73701497a89909e34185dd39375e737 100644 (file)
@@ -93,6 +93,20 @@ def find_config_dir(conf):
         conf.fatal('cannot use the configuration test folder %r' % dir)
     return dir
 
+@conf
+def CHECK_SHLIB_INTRASINC_NAME_FLAGS(conf, msg):
+    '''
+        check if the waf default flags for setting the name of lib
+        are ok
+    '''
+
+    snip = '''
+int foo(int v) {
+    return v * 2;
+}
+'''
+    return conf.check(features='cc cshlib',vnum="1",fragment=snip,msg=msg)
+
 @conf
 def CHECK_SHLIB_W_PYTHON(conf, msg):
     '''check if we need -undefined dynamic_lookup'''