From 3de9baafbaadd87fb47c93fe22e3ab4d9f22e6d7 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 23 Oct 2014 02:54:15 +0000 Subject: [PATCH] Add -ldl to libc++ tests when sanitizers are used. Clang 3.6 no longer links the sanitizer runtime library dependancies when -nodefaultlibs is used. This patch manually links in a missing dependancy. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@220463 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lit.cfg b/test/lit.cfg index d60c96939..ff308b6ea 100644 --- a/test/lit.cfg +++ b/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')