blob: e3b15934ca437ba381498a5d2bc9fe70698d18da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -ur llvm-2.8.orig/utils/TableGen/CMakeLists.txt llvm-2.8/utils/TableGen/CMakeLists.txt
--- llvm-2.8.orig/utils/TableGen/CMakeLists.txt 2011-11-27 23:35:10.000000000 +1100
+++ llvm-2.8/utils/TableGen/CMakeLists.txt 2011-11-27 23:38:34.000000000 +1100
@@ -44,3 +44,9 @@
if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
target_link_libraries(tblgen pthread)
endif()
+if(CMAKE_HOST_SYSTEM_NAME STREQUAL "kFreeBSD")
+ find_library(libdl dl)
+ if(NOT libdl MATCHES "NOTFOUND")
+ target_link_libraries(tblgen ${libdl})
+ endif(NOT libdl MATCHES "NOTFOUND")
+endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "kFreeBSD")
+
|