static linking

Hi list,

I try to build llvm/clang from source code. Is there a simple way to link libraries statically?

Thanks,
Kihong

Hello Kihong,

LLVM tools and clang are linked statically by default. Do you encounter any problems with building them statically?

09.04.2019 5:36, Kihong Heo via cfe-dev пишет:

Hello,

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.

Thanks,
Kihong

Hi,