[Lldb-commits] [lldb] r347693 - [CMake] Pass full libedit path to linker
Tatyana Krasnukha via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 27 11:41:30 PST 2018
Author: tkrasnukha
Date: Tue Nov 27 11:41:30 2018
New Revision: 347693
URL: http://llvm.org/viewvc/llvm-project?rev=347693&view=rev
Log:
[CMake] Pass full libedit path to linker
Otherwise, linker fails with "cannot find -ledit" in case of custom libedit installation.
Modified:
lldb/trunk/source/Host/CMakeLists.txt
lldb/trunk/source/Utility/CMakeLists.txt
Modified: lldb/trunk/source/Host/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/CMakeLists.txt?rev=347693&r1=347692&r2=347693&view=diff
==============================================================================
--- lldb/trunk/source/Host/CMakeLists.txt (original)
+++ lldb/trunk/source/Host/CMakeLists.txt Tue Nov 27 11:41:30 2018
@@ -155,7 +155,7 @@ if (HAVE_LIBDL)
list(APPEND EXTRA_LIBS ${CMAKE_DL_LIBS})
endif()
if (NOT LLDB_DISABLE_LIBEDIT)
- list(APPEND EXTRA_LIBS edit)
+ list(APPEND EXTRA_LIBS ${libedit_LIBRARIES})
endif()
add_lldb_library(lldbHost
Modified: lldb/trunk/source/Utility/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/CMakeLists.txt?rev=347693&r1=347692&r2=347693&view=diff
==============================================================================
--- lldb/trunk/source/Utility/CMakeLists.txt (original)
+++ lldb/trunk/source/Utility/CMakeLists.txt Tue Nov 27 11:41:30 2018
@@ -9,7 +9,7 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows"
endif ()
if (NOT LLDB_DISABLE_LIBEDIT)
- list(APPEND LLDB_SYSTEM_LIBS edit)
+ list(APPEND LLDB_SYSTEM_LIBS ${libedit_LIBRARIES})
endif()
if (NOT LLDB_DISABLE_CURSES)
list(APPEND LLDB_SYSTEM_LIBS ${CURSES_LIBRARIES})
More information about the lldb-commits
mailing list