[llvm-commits] [llvm] r89406 - in /llvm/trunk: cmake/modules/LLVMConfig.cmake lib/System/CMakeLists.txt
Oscar Fuentes
ofv at wanadoo.es
Thu Nov 19 15:21:43 PST 2009
Author: ofv
Date: Thu Nov 19 17:21:43 2009
New Revision: 89406
URL: http://llvm.org/viewvc/llvm-project?rev=89406&view=rev
Log:
Use CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536.
Patch by Tobias Grosser!
Modified:
llvm/trunk/cmake/modules/LLVMConfig.cmake
llvm/trunk/lib/System/CMakeLists.txt
Modified: llvm/trunk/cmake/modules/LLVMConfig.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMConfig.cmake?rev=89406&r1=89405&r2=89406&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMConfig.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMConfig.cmake Thu Nov 19 17:21:43 2009
@@ -5,7 +5,7 @@
set(system_libs ${system_libs} imagehlp psapi)
elseif( CMAKE_HOST_UNIX )
if( HAVE_LIBDL )
- set(system_libs ${system_libs} dl)
+ set(system_libs ${system_libs} ${CMAKE_DL_LIBS})
endif()
if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
set(system_libs ${system_libs} pthread)
Modified: llvm/trunk/lib/System/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/CMakeLists.txt?rev=89406&r1=89405&r2=89406&view=diff
==============================================================================
--- llvm/trunk/lib/System/CMakeLists.txt (original)
+++ llvm/trunk/lib/System/CMakeLists.txt Thu Nov 19 17:21:43 2009
@@ -42,5 +42,5 @@
)
if( BUILD_SHARED_LIBS AND NOT WIN32 )
- target_link_libraries(LLVMSystem dl)
+ target_link_libraries(LLVMSystem ${CMAKE_DL_LIBS})
endif()
More information about the llvm-commits
mailing list