From e4f3df19b0d76bf6a26eefaded385f6b3db5f133 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 23 Aug 2013 19:43:21 +0200 Subject: [PATCH] Use -R linker flag instead of -rpath on Solaris --- buildtools/wafadmin/Tools/gcc.py | 5 +++++ buildtools/wafadmin/Tools/suncc.py | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/buildtools/wafadmin/Tools/gcc.py b/buildtools/wafadmin/Tools/gcc.py index 420b44f..15c84c3 100644 --- a/buildtools/wafadmin/Tools/gcc.py +++ b/buildtools/wafadmin/Tools/gcc.py @@ -114,6 +114,11 @@ def gcc_modifier_aix(conf): v['SHLIB_MARKER'] = '' @conftest +def gcc_modifier_sunos(conf): + v = conf.env + v['RPATH_ST']='-R%s' + +@conftest def gcc_modifier_platform(conf): # * set configurations specific for a platform. # * the destination platform is detected automatically by looking at the macros the compiler predefines, diff --git a/buildtools/wafadmin/Tools/suncc.py b/buildtools/wafadmin/Tools/suncc.py index b1a2aad..45d4e69 100644 --- a/buildtools/wafadmin/Tools/suncc.py +++ b/buildtools/wafadmin/Tools/suncc.py @@ -48,6 +48,7 @@ def scc_common_flags(conf): v['STATICLIB_ST'] = '-l%s' v['STATICLIBPATH_ST'] = '-L%s' v['CCDEFINES_ST'] = '-D%s' + v['RPATH_ST'] = '-R%s' v['SONAME_ST'] = '-Wl,-h -Wl,%s' v['SHLIB_MARKER'] = '-Bdynamic' -- 1.7.3.2