[PATCH] D96070: [clang] [driver] Enable static linking to libc++

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 5 00:47:33 PST 2021


mstorsjo added a comment.

In D96070#2544297 <https://reviews.llvm.org/D96070#2544297>, @tbaeder wrote:

> In D96070#2543172 <https://reviews.llvm.org/D96070#2543172>, @mstorsjo wrote:
>
>> In particular, if libcxx is built with `LIBCXX_ENABLE_STATIC_ABI_LIBRARY` enabled, the libcxxabi static library is merged into libc++.a, making static linking work just fine.
>
> I can't test this right now, but it is manually specifying pthread not needed in that case?

That would only bundle libcxxabi, not pthreads, so that'd still be required.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96070/new/

https://reviews.llvm.org/D96070



More information about the cfe-commits mailing list