[compiler-rt] r332790 - Do not link with -ldl in NetBSD/ASan tests

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Fri May 18 18:02:52 PDT 2018


Author: kamil
Date: Fri May 18 18:02:51 2018
New Revision: 332790

URL: http://llvm.org/viewvc/llvm-project?rev=332790&view=rev
Log:
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

Modified:
    compiler-rt/trunk/test/asan/lit.cfg

Modified: compiler-rt/trunk/test/asan/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/lit.cfg?rev=332790&r1=332789&r2=332790&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/lit.cfg (original)
+++ compiler-rt/trunk/test/asan/lit.cfg Fri May 18 18:02:51 2018
@@ -48,8 +48,7 @@ config.substitutions.append(('%env_asan_
 # 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 = ""




More information about the llvm-commits mailing list