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/wscript | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'buildtools/wafsamba/wscript') diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index 90aeb45582..b9b06abfe8 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -275,6 +275,16 @@ def configure(conf): else: conf.ADD_CFLAGS('-fPIC', testflags=True) + # On Solaris 8 with suncc (at least) the flags for the linker to define the name of the + # library are not always working (if the command line is very very long and with a lot + # files) + + if conf.env['COMPILER_CC'] == "suncc": + save = conf.env['SONAME_ST'] + conf.env['SONAME_ST'] = '-Wl,-h,%s' + if not conf.CHECK_SHLIB_INTRASINC_NAME_FLAGS("Checking if flags %s are ok" % conf.env['SONAME_ST']): + conf.env['SONAME_ST'] = save + conf.CHECK_INLINE() # check for pkgconfig -- cgit