You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/llvm-1-kfreebsd.patch

18 lines
716 B

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")
+