The gcc
driver can be configured to use a particular linker, particular options and other details (e.g. overriding system headers) using .specs
files.
The current (as of this writing) manual for version of GCC (4.9.0) describes the Spec Files here.
Is there a similar mechanism for Clang/LLVM. Apparently Clang has the notion of a driver as well, but I was unable to come up with any documentation on whether Spec Files or a similar mechanism exist for Clang and how to use them.
I am interested in this for both C and C++, but probably a pointer to either of them will get me started.
Goal is to override the system header and library paths as well as the linker as briefly mentioned before.