This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help building cross compiler...
joseph layton galbraith <galb@unm.edu> writes:
> I am trying to build a cross compiler from linux
> to sunos4, and it is failing building target
> libraries (in libio/gen-params) because it
> can't find stdio.h.
>
> Here is what I've done ... if someone can please give me some hint where
> I've gone wrong, I'dbe eternally grateful. I've read all the faqs and
> information I can find... (including egcs INSTALL directory and the
> cross-faq at cygnus)
...
> 3. Configured egcs as follows (from config.status):
> ../egcs-980122/configure --host=i586-pc-linux-gnulibc1
> --prefix=/home/galb/egcs-sun --target=sparc-sunos4
> --with-headers=/home/galb/egcs-sun/include
> --with-libs=/home/galb/egcs-sun/lib --with-newlib --norecursion
I do something simpler, and it works for me:
- Put all the cross-compiler includes under /usr/local/TARGET/include.
- Put all the cross-compiler libs under /usr/local/TARGET/lib.
Then "../configure --target=TARGET" and "gmake cross".
Joe Buehler