llvm-project/lldb/source/Core
Michal Gorny 8e58ad5182 [cmake] Add explicit linkage from Core to curses
The Core library calls functions provided by the curses library. Add
an appropriate explicit LINK_LIBS to ${CURSES_LIBRARIES} to propagate
the dependency correctly within the build system.

It seems that so far the linkage was handled by some kind of implicit
magic LLDB_SYSTEM_LIBS variable. However, it stopped working for
unittests as the curses libraries are passed before the LLDBCore
library, resulting in `-Wl,--as-needed` stripping the yet-unused library
before it is required by LLDBCore, and effectively breaking the build.
I think it's better to focus on listing all the dependencies explicitly
and let CMake propagate them rather than trying to figure out why this
hack stopped working.

This is also more consistent with LLVM where the curses linkage
in LLVMSupport is expressed directly in the library rather than deferred
to the final programs.

Differential Revision: https://reviews.llvm.org/D36358

llvm-svn: 311122
2017-08-17 20:33:21 +00:00
..
Address.cpp Fix backtrace of noreturn functions situated at the end of a module 2017-06-08 13:26:35 +00:00
AddressRange.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
AddressResolver.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
AddressResolverFileLine.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
AddressResolverName.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
ArchSpec.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
Broadcaster.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
CMakeLists.txt [cmake] Add explicit linkage from Core to curses 2017-08-17 20:33:21 +00:00
Communication.cpp Move Connection and IOObject interfaces to Utility module 2017-06-27 10:33:14 +00:00
Debugger.cpp Introduce new command: thread backtrace unique 2017-06-12 16:25:24 +00:00
Disassembler.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
DumpDataExtractor.cpp Pass in the disassembler flavor when disassembling in 2017-07-11 04:22:31 +00:00
DynamicLoader.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
EmulateInstruction.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Event.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
FileLineResolver.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
FileSpecList.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
FormatEntity.cpp Move StructuredData from Core to Utility 2017-06-27 10:45:31 +00:00
IOHandler.cpp Fix LLDB build. 2017-06-23 23:55:32 +00:00
Listener.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
Mangled.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
Module.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
ModuleChild.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ModuleList.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Opcode.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
PluginManager.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
RegisterValue.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Scalar.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
SearchFilter.cpp Update StructuredData::String to return StringRefs. 2017-05-12 05:49:54 +00:00
Section.cpp Fix backtrace of noreturn functions situated at the end of a module 2017-06-08 13:26:35 +00:00
SourceManager.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
State.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
StreamAsynchronousIO.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
StreamFile.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
UserSettingsController.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Value.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObject.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectCast.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectChild.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResult.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResultCast.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResultChild.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResultImpl.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectDynamicValue.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectList.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
ValueObjectMemory.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectRegister.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectSyntheticFilter.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectVariable.cpp Remove the DWARFExpression -> Clang ExpressionParser dependency 2017-08-16 11:45:10 +00:00