From 395aa789869c90a86b6eab67564dbe500571da59 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 11 Sep 2018 10:35:32 +0000 Subject: [PATCH] [Msan] Fix unit test linkage issue on FreeBSD Fix typical relocation linkage issue. Reviwewers: dim, emaste Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D51681 llvm-svn: 341924 --- compiler-rt/test/msan/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/msan/lit.cfg b/compiler-rt/test/msan/lit.cfg index 0a5aa75..e08673d 100644 --- a/compiler-rt/test/msan/lit.cfg +++ b/compiler-rt/test/msan/lit.cfg @@ -17,7 +17,7 @@ clang_msan_cflags = (["-fsanitize=memory", config.debug_info_flags) # Some Msan tests leverage backtrace() which requires libexecinfo on FreeBSD. if config.host_os == 'FreeBSD': - clang_msan_cflags += ["-lexecinfo"] + clang_msan_cflags += ["-lexecinfo", "-fPIC"] clang_msan_cxxflags = config.cxx_mode_flags + clang_msan_cflags # Flags for KMSAN invocation. This is C-only, we're not interested in C++. -- 2.7.4