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
Subscribers: kubamracek, llvm-commits, #sanitizers
Tags: #sanitizers
@@ -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 = ""
