multiple cross compilers

Der Herr Hofrat der.herr@hofr.at
Fri Sep 28 06:12:00 GMT 2001


HI !

 I built a cross-compiler for mpc860 (target ppc-linux -mcpu=860 -msoft-float) 
 and a second one for 6xx ppc cpu - the problem is that both want to have there
 as/ar/ranlib/etc in the directory TARGET/bin/ but that is ppc-linux in both 
 cases so I can't have them installed at the same time. 

 what I did is put the mpc860 stuff into a mpc860-linux directory renaming all
 the cross-compiler stuff to mpc860-linux-gcc etc. passing this via Makefile or
 env's when compiling - but this does not work at all. if I then link the
 mpc860-linux directory to ppc-linux without that I change my naming sheme
 then all goes fine !

 I have not found any way to tell gcc while building for a cross-compiler where
 to search for the tools - the only flag associated with this problem seems to
 be --target=ppc-linux and that seems to be used as the directory name to 
 search for the tools . Any idea how to pass a diferent directory for search
 at configure/compile time ?

thx !
hofrat



More information about the Gcc-help mailing list