[PATCH] D51681: [Msan] Fix unit test linkage issue on FreeBSD

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 11 03:37:14 PDT 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL341924: [Msan] Fix unit test linkage issue on FreeBSD (authored by devnexen, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D51681?vs=164019&id=164842#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51681

Files:
  compiler-rt/trunk/test/msan/lit.cfg


Index: compiler-rt/trunk/test/msan/lit.cfg
===================================================================
--- compiler-rt/trunk/test/msan/lit.cfg
+++ compiler-rt/trunk/test/msan/lit.cfg
@@ -17,7 +17,7 @@
                       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++.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51681.164842.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180911/4bc82e6a/attachment.bin>


More information about the llvm-commits mailing list