[cfe-dev] static linking

Miklos Vajna via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 11 00:43:41 PDT 2019


On Wed, Apr 10, 2019 at 05:53:35PM -0400, Kihong Heo via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> When I run clang compiled with the default setting, an error message like “GLIBCXX_…” not found.
> Of course, it works well the same system where it was compiled. But I try to use the compiled clang in another system. That’s why I am looking for a way to statically link libraries.

Did you see if -DLLVM_BUILD_STATIC=true does what you need?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190411/84085b70/attachment.sig>

More information about the cfe-dev mailing list