Skip to content
Snippets Groups Projects
Commit deed7138 authored by Tom Stellard's avatar Tom Stellard
Browse files

fix lldb-gdbserver and lldb-platform linking on RHEL 6

This if fix for bug 23774.

Trunk CMake files were changed and fix should be applied to
tools/lldb-server/CMakeLists.txt.

Patch by: Eugene Zelenko

llvm-svn: 240421
parent f56cb8b6
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,12 @@ add_lldb_executable(lldb-gdbserver
if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
target_link_libraries(lldb-gdbserver
-Wl,--start-group ${LLDB_USED_LIBS} -Wl,--end-group)
target_link_libraries(lldb-gdbserver
-Wl,--start-group ${CLANG_USED_LIBS} -Wl,--end-group)
else()
target_link_libraries(lldb-gdbserver ${LLDB_USED_LIBS})
target_link_libraries(lldb-gdbserver ${CLANG_USED_LIBS})
endif()
target_link_libraries(lldb-gdbserver ${CLANG_USED_LIBS})
llvm_config(lldb-gdbserver ${LLVM_LINK_COMPONENTS})
target_link_libraries(lldb-gdbserver ${LLDB_SYSTEM_LIBS})
......
......@@ -34,10 +34,12 @@ endif()
if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
target_link_libraries(lldb-platform
-Wl,--start-group ${LLDB_USED_LIBS} -Wl,--end-group)
target_link_libraries(lldb-platform
-Wl,--start-group ${CLANG_USED_LIBS} -Wl,--end-group)
else()
target_link_libraries(lldb-platform ${LLDB_USED_LIBS})
target_link_libraries(lldb-platform ${CLANG_USED_LIBS})
endif()
target_link_libraries(lldb-platform ${CLANG_USED_LIBS})
llvm_config(lldb-platform ${LLVM_LINK_COMPONENTS})
target_link_libraries(lldb-platform ${LLDB_SYSTEM_LIBS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment