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

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 15:26:45 PST 2021


MaskRay added a comment.

Making -stdlib=libc++ not affect linker option for `-static` and `-static-pie` looks good to me, for the GNU toolchain. They are expected to pass `-lc++ -lc++abi` if they use separate `libc++abi.a`.
Just specifying `-lc++abi` does not work with GNU ld and gold anyway.
It may make some users unhappy if we do that for dynamic linking.


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