forked from OSchip/llvm-project
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 llvm-svn: 332790
This commit is contained in:
parent
6ac211667d
commit
c7fe74576f
|
@ -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 = ""
|
||||
|
|
Loading…
Reference in New Issue