diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2009-11-19 23:21:43 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2009-11-19 23:21:43 +0000 |
commit | 470fb519615d6c2bf31e9b3c0dd068bb0af39af2 (patch) | |
tree | 5c19c0d3f0928a5d2c5d2cedc8a7476b2ecef2bb /cmake/modules | |
parent | 3e72d301e03de8edcd603a5d3e9486748dfa6887 (diff) | |
download | external_llvm-470fb519615d6c2bf31e9b3c0dd068bb0af39af2.zip external_llvm-470fb519615d6c2bf31e9b3c0dd068bb0af39af2.tar.gz external_llvm-470fb519615d6c2bf31e9b3c0dd068bb0af39af2.tar.bz2 |
Use CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536.
Patch by Tobias Grosser!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rwxr-xr-x | cmake/modules/LLVMConfig.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake index d1c297c..a753674 100755 --- a/cmake/modules/LLVMConfig.cmake +++ b/cmake/modules/LLVMConfig.cmake @@ -5,7 +5,7 @@ function(get_system_libs return_var) 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) |