mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 14:03:14 +00:00
Use CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536.
Patch by Tobias Grosser! llvm-svn: 89406
This commit is contained in:
parent
b98c542d94
commit
88c6014eb8
@ -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)
|
||||
|
@ -42,5 +42,5 @@ add_llvm_library(LLVMSystem
|
||||
)
|
||||
|
||||
if( BUILD_SHARED_LIBS AND NOT WIN32 )
|
||||
target_link_libraries(LLVMSystem dl)
|
||||
target_link_libraries(LLVMSystem ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user