[libcxx] r283659 - [cmake] Split linked libraries into private & public, for linker script

Renato Golin via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 8 04:20:16 PDT 2016


On 8 October 2016 at 11:27, Michal Gorny via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: mgorny
> Date: Sat Oct  8 05:27:45 2016
> New Revision: 283659
>
> URL: http://llvm.org/viewvc/llvm-project?rev=283659&view=rev
> Log:
> [cmake] Split linked libraries into private & public, for linker script
>
> Introduce LIBCXX_LIBRARIES_PUBLIC in addition to LIBCXX_LIBRARIES that
> holds 'public' interface libraries -- that is, libraries that both
> libc++ links to and programs linked against it need to link to.
>
> Currently this includes the ABI library and optionally -lunwind (when
> LIBCXXABI_USE_LLVM_UNWINDER is on). The libraries are included in the
> linker script, in order to make it possible to link C++ programs using
> clang with compiler-rt runtime out-of-the-box.
>
> Differential Revision: https://reviews.llvm.org/D25008

Hum, this seems to have broken our unwind finder:

http://lab.llvm.org:8011/builders/libcxx-libcxxabi-libunwind-arm-linux/builds/205

[100%] Linking CXX shared library ../../../lib/libc++.so
[100%] Linking CXX static library ../../../lib/libc++.a
/usr/bin/ld: cannot find -lunwind
clang-3.8: error: linker command failed with exit code 1 (use -v to
see invocation)

cheers,
--renato


More information about the cfe-commits mailing list