[llvm] r205847 - Add support for building LLVM on FreeBSD 9.2

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Apr 9 04:43:34 PDT 2014


Author: vkutuzov
Date: Wed Apr  9 06:43:34 2014
New Revision: 205847

URL: http://llvm.org/viewvc/llvm-project?rev=205847&view=rev
Log:
Add support for building LLVM on FreeBSD 9.2

Modified:
    llvm/trunk/cmake/config-ix.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=205847&r1=205846&r2=205847&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Wed Apr  9 06:43:34 2014
@@ -17,6 +17,11 @@ if( UNIX AND NOT BEOS )
   # 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)





More information about the llvm-commits mailing list