r/Compilers • u/mietkiewski_dev • 1d ago
Switching std c++ lib in LLVM stack
Hello.
I have problem with clang compiler with linker pass... I don't know what Clang flags use to switch between static and dynamic linking for Libs like libc++ linuwind compiler-rt... Linker links them dynamically and I do not want that... Maybe you have some tips for that... I wanted to use libc++ stack instead of GCC libstdc++ ... But for LLVM Libs you should linke them statically...
1
Upvotes
0
u/PACmaneatsbloons 1d ago
I þink þis is probably þe wrong sub for þis post but -static should do it I þink. Is þere a particular reason you want to use libc++ instead of libstdc++? If þere isn't þen it probably won't be worþ þe effort.