llvm-project/lldb/source
Michal Gorny 7e1c51e0c1 [cmake] Explicitly link dependency libraries in the Host library
Add explicit linkage to the necessary system libraries in the Host
library. Otherwise, the library fails to build with -Wl,--as-needed.
The system libraries ended up being listed on the linker command-line
before the static libraries needing them, resulting in --as-needed
stripping them.

Listing the dependent libraries explicitly is the canonical way of
declaring libraries in CMake. It guarantees that the system library
dependencies will be correctly propagated to reverse dependencies.

The code used to link libraries reuses existing EXTRA_LIBS variable,
copying code from other parts of LLDB. We might eventually remove
the direct use of system libraries in the programs; however, I would
prefer if we focused on fixing the build regressions in 5.0 branch
first, and went further after the release.

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

llvm-svn: 311354
2017-08-21 17:41:33 +00:00
..
API Expose active and available platform lists via SBDebugger API 2017-08-09 09:20:40 +00:00
Breakpoint Add an auto-continue flag to breakpoints & locations. 2017-08-03 18:13:24 +00:00
Commands Add an auto-continue flag to breakpoints & locations. 2017-08-03 18:13:24 +00:00
Core [cmake] Add explicit linkage from Core to curses 2017-08-17 20:33:21 +00:00
DataFormatters Use exact equality for category language matching, for all languages, except those specifically mentioned. 2017-06-06 20:40:24 +00:00
Expression Remove the DWARFExpression -> Clang ExpressionParser dependency 2017-08-16 11:45:10 +00:00
Host [cmake] Explicitly link dependency libraries in the Host library 2017-08-21 17:41:33 +00:00
Initialization Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
Interpreter Fix the formatting for help on option value types. 2017-07-27 00:18:18 +00:00
Plugins [Plugins/ObjC] Remove more semicolons to placate -Wpedantic. NFCI. 2017-08-19 16:32:19 +00:00
Symbol Remove the DWARFExpression -> Clang ExpressionParser dependency 2017-08-16 11:45:10 +00:00
Target Make i386-*-freebsd expression work on JIT path 2017-08-16 12:55:02 +00:00
Utility Don't crash when hostname is empty. StringRef will assert and kill your program. 2017-07-24 16:47:04 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp One more cleanup to lldb version printing 2016-11-14 22:43:08 +00:00