[PATCH] Add support for building LLVM on FreeBSD 9.2
Viktor Kutuzov
vkutuzov at accesssoftek.com
Tue Apr 8 03:44:00 PDT 2014
Hi tfiala, pcc, majnemer, samsonov, chapuni,
http://reviews.llvm.org/D3313
Files:
cmake/config-ix.cmake
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -17,6 +17,11 @@
# Used by check_symbol_exists:
set(CMAKE_REQUIRED_LIBRARIES m)
endif()
+# x86_64 FreeBSD 9.2 requires libcxxrt to be specified explicitly.
+if( CMAKE_SYSTEM MATCHES "FreeBSD-9.2-RELEASE" AND
+ CMAKE_SIZEOF_VOID_P EQUAL 8 )
+ list(APPEND CMAKE_REQUIRED_LIBRARIES "cxxrt")
+endif()
# Helper macros and functions
macro(add_cxx_include result files)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3313.1.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140408/cfe87b65/attachment.bin>
More information about the llvm-commits
mailing list