diff options
author | Ralph Boehme <slow@samba.org> | 2014-12-18 06:37:28 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-12-19 13:15:12 +0100 |
commit | 89cc31f5cf9181f04f3ca1a5f7000ee15a74e86e (patch) | |
tree | 7ebe3302b4c0b88cd63b88af8ed8cd061df0ebe3 /buildtools | |
parent | 76fdcf5c15bd904c3686f0c2dd93d27486c61ca4 (diff) | |
download | samba-89cc31f5cf9181f04f3ca1a5f7000ee15a74e86e.tar.gz samba-89cc31f5cf9181f04f3ca1a5f7000ee15a74e86e.tar.xz samba-89cc31f5cf9181f04f3ca1a5f7000ee15a74e86e.zip |
wafsamba: check for rpath compiler/linker flags
Older SunOS linker only support -Wl,-R,/path instead of -Wl,-rpath,/path.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10112
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rwxr-xr-x | buildtools/wafsamba/wscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index 1a2cfe661f..1a30d2fa93 100755 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -295,6 +295,10 @@ def configure(conf): headers='stdio.h', msg='Checking simple C program') + # check which compiler/linker flags are needed for rpath support + if not conf.CHECK_LDFLAGS(['-Wl,-rpath,.']) and conf.CHECK_LDFLAGS(['-Wl,-R,.']): + conf.env['RPATH_ST'] = '-Wl,-R,%s' + # check for rpath if conf.CHECK_LIBRARY_SUPPORT(rpath=True): support_rpath = True |