diff options
author | Kamil Rytarowski <n54@gmx.com> | 2018-05-19 01:02:51 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2018-05-19 01:02:51 +0000 |
commit | 24ff6a2e4c982b0267183406029dc9f8d63e8ed7 (patch) | |
tree | bca6cf5a4923fffac00b45a26ffb844ac1bc68a4 | |
parent | cfd67d108d9b6c0b0af52d2fb9583c3927ff5b95 (diff) |
Do not link with -ldl in NetBSD/ASan tests
Summary:
The dlopen(3) features on NetBSD are in libc.
Sponsored by <The NetBSD Foundation>
Reviewers: joerg, vitalybuka, kcc
Reviewed By: vitalybuka
Subscribers: kubamracek, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D46713
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/asan/lit.cfg | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/asan/lit.cfg b/test/asan/lit.cfg index c8bc55fe2..e84abc5d2 100644 --- a/test/asan/lit.cfg +++ b/test/asan/lit.cfg @@ -48,8 +48,7 @@ config.substitutions.append(('%env_asan_opts=', # Setup source root. config.test_source_root = os.path.dirname(__file__) -# There is no libdl on FreeBSD. -if config.host_os != 'FreeBSD': +if config.host_os not in ['FreeBSD', 'NetBSD']: libdl_flag = "-ldl" else: libdl_flag = "" |