summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/lit.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg
index d60c9693919..ff308b6ea7d 100644
--- a/libcxx/test/lit.cfg
+++ b/libcxx/test/lit.cfg
@@ -431,6 +431,8 @@ class Configuration(object):
san = self.get_lit_conf('llvm_use_sanitizer', '').strip()
if san:
self.compile_flags += ['-fno-omit-frame-pointer']
+ if not sys.platform.startswith('freebsd'):
+ self.link_flags += ['-ldl']
if san == 'Address':
self.compile_flags += ['-fsanitize=address']
self.config.available_features.add('asan')
OpenPOWER on IntegriCloud