From mboxrd@z Thu Jan 1 00:00:00 1970 From: jhpb@sarto.gaithersburg.md.us (Joseph H. Buehler) To: egcs@cygnus.com, galb@unm.edu Subject: Re: Help building cross compiler... Date: Thu, 05 Feb 1998 06:40:00 -0000 Message-id: References: X-SW-Source: 1998-02/msg00187.html joseph layton galbraith 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