mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-25 05:10:56 +00:00
When building shared libraries, link to required system libraries.
PR 8375 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
263cfecd4f
commit
00a9618458
@ -9,6 +9,12 @@ macro(add_llvm_library name)
|
||||
if( LLVM_COMMON_DEPENDS )
|
||||
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
|
||||
endif( LLVM_COMMON_DEPENDS )
|
||||
|
||||
if( BUILD_SHARED_LIBS )
|
||||
get_system_libs(sl)
|
||||
target_link_libraries( ${name} ${sl} )
|
||||
endif()
|
||||
|
||||
install(TARGETS ${name}
|
||||
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
|
||||
|
@ -42,7 +42,3 @@ add_llvm_library(LLVMSystem
|
||||
Win32/ThreadLocal.inc
|
||||
Win32/TimeValue.inc
|
||||
)
|
||||
|
||||
if( BUILD_SHARED_LIBS AND NOT WIN32 )
|
||||
target_link_libraries(LLVMSystem ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user