[PATCH] D53238: [Driver] Add -static= to unify -static-{libgcc,libstdc++}

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 13:51:35 PDT 2020


MaskRay added a comment.

In D53238#2345618 <https://reviews.llvm.org/D53238#2345618>, @Yu wrote:

> I accidentally come into this thread when searching for how to statically link to libc++/libc++abi. I'm really curious if this patch will or will not get merged. I'm really painful on using c++17 on ancient environment which does not have libc++/libc++ abi dynamic library. We have to remove `-stdlib=libc++` and manually add libc++.a/libc++abi.a to the object lists. That's pretty hacky for cmake users. It'll be really awesome if we can have this patch merged. Thanks guys!

Though non-obvious, -static-libstdc++ actually works for -stdlib=libc++...


Repository:
  rC Clang

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

https://reviews.llvm.org/D53238



More information about the cfe-commits mailing list