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:
Kamil Rytarowski 2018-05-19 01:02:51 +00:00
parent 6ac211667d
commit c7fe74576f
1 changed files with 1 additions and 2 deletions

View File

@ -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 = ""