> And there is not only according the LLVM_PREFIX and the path of clang
> executable to imply the sysroot path since the sysroot for
> cross-compilation is no standard path, so I just make the behavior
> like the gcc toolchain,
> and it's will make the clang/llvm able to distribute like
> codesourcery's toolchain.

Doesn't the clang driver already search for gcc libraries installed next to it? 
If you need it to be in a subfolder or something, I would prefer to add support 
for GCC_INSTALL_PREFIX being a relative path, so that you can build with 
something like

configure --with-gcc-toolchain=../relative/gcc/install/dir/

instead of doing prefix match at runtime.

Cheers,
Rafael


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to