[PATCH] Fix building 32-bit common sanitizer tests on FreeBSD 9.2
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed May 28 07:29:33 PDT 2014
Hi kcc, samsonov,
http://reviews.llvm.org/D3939
Files:
lib/sanitizer_common/tests/CMakeLists.txt
Index: lib/sanitizer_common/tests/CMakeLists.txt
===================================================================
--- lib/sanitizer_common/tests/CMakeLists.txt
+++ lib/sanitizer_common/tests/CMakeLists.txt
@@ -68,9 +68,10 @@
append_if(COMPILER_RT_HAS_LIBSTDCXX -lstdc++ SANITIZER_TEST_LINK_FLAGS_COMMON)
append_if(COMPILER_RT_HAS_LIBDL -ldl SANITIZER_TEST_LINK_FLAGS_COMMON)
append_if(COMPILER_RT_HAS_LIBPTHREAD -lpthread SANITIZER_TEST_LINK_FLAGS_COMMON)
-# x86_64 FreeBSD 9.2 additionally requires libc++ to build the tests.
+# x86_64 FreeBSD 9.2 additionally requires libc++ to build the tests. Also,
+# 'libm' shall be specified explicitly to build i386 tests.
if(CMAKE_SYSTEM MATCHES "FreeBSD-9.2-RELEASE")
- list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON "-lc++")
+ list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON "-lc++ -lm")
endif()
include_directories(..)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3939.9879.patch
Type: text/x-patch
Size: 873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140528/95465a16/attachment.bin>
More information about the llvm-commits
mailing list