[PATCH] D46713: Do not link with -ldl in NetBSD/ASan tests
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 10 12:19:06 PDT 2018
krytarowski created this revision.
krytarowski added reviewers: joerg, vitalybuka, kcc.
krytarowski added a project: Sanitizers.
Herald added subscribers: llvm-commits, kubamracek.
The dlopen(3) features on NetBSD are in libc.
Sponsored by <The NetBSD Foundation>
Repository:
rL LLVM
https://reviews.llvm.org/D46713
Files:
test/asan/lit.cfg
Index: test/asan/lit.cfg
===================================================================
--- test/asan/lit.cfg
+++ test/asan/lit.cfg
@@ -48,8 +48,7 @@
# 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 != 'FreeBSD' and config.host_os != 'NetBSD':
libdl_flag = "-ldl"
else:
libdl_flag = ""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46713.146185.patch
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180510/22fd4d42/attachment.bin>
More information about the llvm-commits
mailing list