I am looking at how to best integrate building a cross compiler in our source tree, which is a little bit old-baken and easy to break. Nevertheless, I'd like to to it like you're supposed to do with new GCC's. I am using 4.8.1 now. Rather than describing my specific problem, let me ask very general here. What I want is to build re-targeted binutils for <myarch> with program-prefix <myarch> and program-suffix <version>.
How best to build GCC and tell the built driver to use binutils above as well as using this for building libgcc (and bootstrapping)? ./gcc/configure --prefix=<myprefix> --program-prefix=<myarch>- --program=suffix=-<myversion> --disable-multilib --with-ld= DO I NEED THIS --with-as= DO I NEED THIS --target=<myarch-os> --with-newlib --enable-languages=c --with-sysroot= DO I NEED THIS? --with-build-sysroot= DO I NEED THIS? What I saw was basically the compiler looking for <myarch-os>-ar while building the libgcc library. Regards, Thanks, Hendrik Greving