From c3fa203435b82d14805024db8e4a3660859cbdf0 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sun, 31 Oct 2010 18:50:15 +0300 Subject: build: In some case the flags for the sun studio linker are wrong In this case we test if the -Wl,-h,%s works and if so use this form Autobuild-User: Matthieu Patou Autobuild-Date: Sun Oct 31 16:35:17 UTC 2010 on sn-devel-104 --- buildtools/wafsamba/samba_conftests.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'buildtools/wafsamba/samba_conftests.py') diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index 49cd4ff17c..4811614ab7 100644 --- a/buildtools/wafsamba/samba_conftests.py +++ b/buildtools/wafsamba/samba_conftests.py @@ -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''' -- cgit