I installed clang
from scratch following the instructions here. Afterwards, I installed libc++
using libsupc++
according to the instructions here.
Now, whenever I compile & link a program with clang
and libc++
, I need to issue a command like that:
clang++ -stdlib=libc++ -Wl,-rpath,/path/to/libcxx/lib <...>
Is there a way to configure/compile clang in a way that it uses libc++
by default, without me having to specify the library and/or the path on the command line each time? Putting it into LD_LIBRARY_PATH
is not a preferred option either, neither is using a custom wrapper script.