This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: cross x86->mips (again)


Hi Per,

> Could you elaborate a bit?

The following is what I do for h8300-hms.  Note that I have a symlink to
newlib under gcc-2.95.3 and --with=newlib in configure options.

tar xfz gcc-2.95.3.tar.gz
tar xfz newlib-1.9.0.tar.gz
cd gcc-2.95.3
ln -s ../newlib-1.9.0/newlib .
patch -p1 < ../h8300-hms-gcc-2.95.3-1.patch
mkdir objdir
cd objdir
../configure \
        --prefix=/usr/local --target=h8300-hms \
        --enable-languages="c,c++" --with-newlib
gmake all
gmake install

> I've been trying to build newlib-1.8.2 but it looks like I 
> need the cross
> compiler to do so. Isn't newlib supposed to be installed *after* the
> cross compiler?

To me, it is easier to do at the same time.

Kazu Hirata


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]