summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-05-10 20:13:36 +0000
committerKamil Rytarowski <n54@gmx.com>2018-05-10 20:13:36 +0000
commit4eadac5244583b24a58f755d187ecdfc81906248 (patch)
treec5273bd55282563240d914ebb015db8e8d784579 /test
parentaf6859eaab3f96b8d926da0f62169f49060192ae (diff)
Setup ORIGIN/NetBSD option in sanitizer tests
Summary: NetBSD can use the approach that exists in FreeBSD, Linux and SunOS. Pick the FreeBSD one as marking programs with "-z origin" is useful. Sponsored by <The NetBSD Foundation> Reviewers: joerg, vitalybuka, kcc Reviewed By: vitalybuka Subscribers: emaste, fedor.sergeev, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D46718 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/lit.common.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit.common.cfg b/test/lit.common.cfg
index e813a657f..37035919c 100644
--- a/test/lit.common.cfg
+++ b/test/lit.common.cfg
@@ -312,7 +312,7 @@ if config.host_os == 'Darwin' and config.ios and not config.iossim:
if config.host_os == 'Darwin':
config.substitutions.append( ("%ld_flags_rpath_exe", '-Wl,-rpath,@executable_path/ %dynamiclib') )
config.substitutions.append( ("%ld_flags_rpath_so", '-install_name @rpath/`basename %dynamiclib`') )
-elif config.host_os == 'FreeBSD':
+elif config.host_os == 'FreeBSD' or config.host_os == 'NetBSD':
config.substitutions.append( ("%ld_flags_rpath_exe", "-Wl,-z,origin -Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_namespec") )
config.substitutions.append( ("%ld_flags_rpath_so", '') )
elif config.host_os == 'Linux':