projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e777fb4
)
Add support for building LLVM on FreeBSD 9.2
author
Viktor Kutuzov
<vkutuzov@accesssoftek.com>
Wed, 9 Apr 2014 11:43:34 +0000
(11:43 +0000)
committer
Viktor Kutuzov
<vkutuzov@accesssoftek.com>
Wed, 9 Apr 2014 11:43:34 +0000
(11:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205847
91177308
-0d34-0410-b5e6-
96231b3b80d8
cmake/config-ix.cmake
patch
|
blob
|
history
diff --git
a/cmake/config-ix.cmake
b/cmake/config-ix.cmake
index f007b37dc30de99e719f6014c8285fc5489bb31a..197caf9355bfca35c5b2bbfc4ba6287bbefa2faf 100755
(executable)
--- a/
cmake/config-ix.cmake
+++ b/
cmake/config-ix.cmake
@@
-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)