> Having been frustrated in my last attempt to recompile a working
> Linux/MIPS filesystem, I nuked my Linux/i386 system, reinstalled Debian
> from scratch, and decided to get back on to the bull's back.
>
> I grabbed the precompiled binutils and cross-compiler, and untarred them
> from the root directory. Then I untarred glibc-2.0.1 (again, from
> ftp.fnet.fr) in my home directory. Now configure seems to be confused; I
> made a file "configparms" and put the definitions for CC=mipsel-linux-gcc,
> etc in it. Then I typed "configure mipsel-linux" but it doesn't appear to
> be incorporating the configparms definitions. Instead, it tries to use
> plain old gcc, ar, as, etc, instead of mipsel-linux-gcc, mipsel-linux-as,
> etc.
The command "configure mipsel-linux" configures the library for native
compilation _ON_ a mipsel-linux host _FOR_ a mipsel-linux host. Which
is not what you wanted to do.
Appended is my configparms file. Far more complicated than necessary and
full of old stuff. Put the file in the directory in which you want
to compile glibc. Then configure libc with some variation of the
following command:
mkdir objects; cd objects
( setenv CC "mipsel-linux-gcc -pipe" && setenv BUILD_CC gcc && ../configure
--prefix=/usr --enable-shared --enable-profile=no --enable-omitfp
--enable-add-ons=crypt,linuxthreads,localedata --build=mips-mips-irix6.2
mipsel-linux )
(This command assumes that you're using tcsh. Bash users of course know
how to do this themselfes ...)
This says libc to use mipsel-linux-gcc as the compiler and gcc for native
compiles, then runs configure. I always build both byteorder flavours of
libc, so I compile in a subdirectory of the libc sources. This also
enables full optimization of the library. You don't compile under IRIX,
so replace "mips-mips-irix6.2" by the configuration name that you're
using to build libc on, that's i486-linux in your case.
Configured as above a build takes about 90min on a 133MHz Indy, so when
you've enter the make command it's time to have a good cup of coffee ...
When building is finished you have to install the library into the
NFS root directory of your MIPS box. In order to do that type something
(as root) like "make install_root=/tftpboot/<mips-box-ip-addr> install".
This commands takes another 10min on a 133MHz Indy, so it's the time to
refill you coffee cup ...
Warning: take care of what you type when you install the library or
you might overinstall you Intel libc binaries with MIPS binaries!
Have fun,
Ralf
begin 644 configparms.gz
M'XL("$TAJS,"`V-O;F9I9W!A<FUS`-5674_E-A!]YOZ**7<E0-U<Q#Z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