diff options
| author | Kamil Rytarowski <n54@gmx.com> | 2018-05-10 20:13:36 +0000 |
|---|---|---|
| committer | Kamil Rytarowski <n54@gmx.com> | 2018-05-10 20:13:36 +0000 |
| commit | 9788e60736b3ea72a493ce9cfb058e540d9c50af (patch) | |
| tree | 6bf38ef1e480b14c939ce4bd1ea05619d72afe30 | |
| parent | 59bf1e8b368c70f086cdb9a1df34ef9a0c72e062 (diff) | |
| download | bcm5719-llvm-9788e60736b3ea72a493ce9cfb058e540d9c50af.tar.gz bcm5719-llvm-9788e60736b3ea72a493ce9cfb058e540d9c50af.zip | |
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
llvm-svn: 332035
| -rw-r--r-- | compiler-rt/test/lit.common.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/lit.common.cfg b/compiler-rt/test/lit.common.cfg index e813a657f23..37035919c9f 100644 --- a/compiler-rt/test/lit.common.cfg +++ b/compiler-rt/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': |

