------- Comment #3 from pinskia at gcc dot gnu dot org  2008-03-30 20:19 -------
Using a sysroot or setting --prefix for both the newlib build and the GCC build
is the easiest way of getting a cross build to work.

Anyways here are the options I use to build a cross build for spu:
stage1
  binutils: ../src/configure --target=spu-elf --prefix=${HOME}/gcc-spu
  gcc: --prefix=${HOME}/gcc-spu --enable-languages=c --with-mpfr=/usr/local
--with-newlib --without-headers --target=spu-elf
  newlib: ../src/configure --target=spu-elf --prefix=${HOME}/gcc-spu
stage2
  gcc: --prefix=${HOME}/gcc-spu --enable-languages=c,obj-c++
--with-mpfr=/usr/local --with-newlib --target=spu-elf --with-headers


This works without changing any source or headers too.

Thanks,
Andrew Pinski


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
             Status|UNCONFIRMED                 |RESOLVED
 GCC target triplet|i686-pc-linux-gnu           |i686-emc-elf
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35679

Reply via email to