[Lldb-commits] [lldb] r241576 - Enclose CLANG_USED_LIBS in --start/end-group when linking liblldb (bug #24044)
Pavel Labath
labath at google.com
Tue Jul 7 05:24:33 PDT 2015
Author: labath
Date: Tue Jul 7 07:24:33 2015
New Revision: 241576
URL: http://llvm.org/viewvc/llvm-project?rev=241576&view=rev
Log:
Enclose CLANG_USED_LIBS in --start/end-group when linking liblldb (bug #24044)
Patch by Eugene Zelenko.
Modified:
lldb/trunk/cmake/modules/AddLLDB.cmake
Modified: lldb/trunk/cmake/modules/AddLLDB.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/AddLLDB.cmake?rev=241576&r1=241575&r2=241576&view=diff
==============================================================================
--- lldb/trunk/cmake/modules/AddLLDB.cmake (original)
+++ lldb/trunk/cmake/modules/AddLLDB.cmake Tue Jul 7 07:24:33 2015
@@ -67,7 +67,13 @@ macro(add_lldb_library name)
lldb_link_common_libs(${name} "${libkind}")
- target_link_libraries(${name} ${cmake_2_8_12_PUBLIC} ${CLANG_USED_LIBS})
+ target_link_libraries(${name})
+ if (COMPILER_SUPPORTS_GROUPS)
+ target_link_libraries(${name} ${cmake_2_8_12_PUBLIC}
+ -Wl,--start-group ${CLANG_USED_LIBS} -Wl,--end-group)
+ else()
+ target_link_libraries(${name} ${cmake_2_8_12_PUBLIC} ${CLANG_USED_LIBS})
+ endif()
llvm_config(${name} ${LLVM_LINK_COMPONENTS})
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "liblldb")
More information about the lldb-commits
mailing list