aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BinaryStreamRef.cpp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-08-21 17:41:33 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-08-21 17:41:33 +0000
commit7e1c51e0c143568f4191e6d69dc699638b0a1542 (patch)
treec508d581fa8383951383ae7d7252934e2ab04c21 /llvm/lib/Support/BinaryStreamRef.cpp
parent00393cce3a7cc3ecca4877b7a5df07a3dcb944b3 (diff)
downloadllvm-7e1c51e0c143568f4191e6d69dc699638b0a1542.zip
llvm-7e1c51e0c143568f4191e6d69dc699638b0a1542.tar.gz
llvm-7e1c51e0c143568f4191e6d69dc699638b0a1542.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Support/BinaryStreamRef.cpp')
0 files changed, 0 insertions, 0 deletions