jroelofs created this revision.
Herald added a subscriber: mgorny.
There are two issues here. The first:
liblldbHost.a(Editline.cpp.o):(.debug_addr+0x238): undefined reference to
`el_get'
when linking InterpreterTests, is caused by -ledit coming after liblldbHost.a
in the link line.
The second:
liblldbCore.a(IOHandler.cpp.o):(.debug_addr+0x2564): undefined reference to
`del_panel'
because libpanel.a and liblldbCore.a are out of order in the link line.
https://reviews.llvm.org/D32866
Files:
source/Core/CMakeLists.txt
source/Host/CMakeLists.txt
Index: source/Host/CMakeLists.txt
===================================================================
--- source/Host/CMakeLists.txt
+++ source/Host/CMakeLists.txt
@@ -48,6 +48,7 @@
add_host_subdirectory(common
common/Editline.cpp
)
+ list(APPEND EXTRA_LIBS edit)
endif()
add_host_subdirectory(posix
@@ -160,7 +161,7 @@
endif()
if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
- set(EXTRA_LIBS kvm)
+ list(APPEND EXTRA_LIBS kvm)
endif ()
add_lldb_library(lldbHost
Index: source/Core/CMakeLists.txt
===================================================================
--- source/Core/CMakeLists.txt
+++ source/Core/CMakeLists.txt
@@ -69,6 +69,7 @@
LINK_COMPONENTS
Support
Demangle
+ ${LLDB_SYSTEM_LIBS}
)
# Needed to properly resolve references in a debug build.
Index: source/Host/CMakeLists.txt
===================================================================
--- source/Host/CMakeLists.txt
+++ source/Host/CMakeLists.txt
@@ -48,6 +48,7 @@
add_host_subdirectory(common
common/Editline.cpp
)
+ list(APPEND EXTRA_LIBS edit)
endif()
add_host_subdirectory(posix
@@ -160,7 +161,7 @@
endif()
if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
- set(EXTRA_LIBS kvm)
+ list(APPEND EXTRA_LIBS kvm)
endif ()
add_lldb_library(lldbHost
Index: source/Core/CMakeLists.txt
===================================================================
--- source/Core/CMakeLists.txt
+++ source/Core/CMakeLists.txt
@@ -69,6 +69,7 @@
LINK_COMPONENTS
Support
Demangle
+ ${LLDB_SYSTEM_LIBS}
)
# Needed to properly resolve references in a debug build.
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits