[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Using /usr/lib/gcc-cross/ for triples




Hi there,

In attempting to use clang as a cross compiler, clang needed to be able to find some c runtime files etc which are part of gcc it seems.

However, clang only looks in /usr/lib/gcc/$$TRIPLE for such files. It does not look in /usr/lib/gcc-cross/$$TRIPLE , which is where the files are on my ubuntu system at least. I assume it is the same on debian.

I wrote a patch cause clang to also look in gcc-cross, but I'm not sure it should be applied:

 thread.gmane.org/gmane.comp.compilers.clang.scm/73551/focus=73568

Why are the files for cross compiling installed to gcc-cross instead of just gcc/ ? The triples should be the 'safeguard' against mixing already, right?

I'm investigating this to make it easier to cross compile with clang using cmake:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/7142

Thanks,

Steve.


Reply to: