: if [ "`pwd`" != "/opt/redhat/edk-000221/src-redist/glibc-build/~ ] then echo "please go into the glibc-build directory and try again" exit 1 fi CFLAGS="-mcpu=i386 -DCPU=386" export CFLAGS ../glibc-2.1.2/configure --prefix=/opt/redhat/edk-000221/H-i686-pc-linux-gnulibc2.1/i386-elix-linux-gnu \ --build=i386-elix-linux-gnu --host=i686-elix-linux-gnu --with-headers=/home/martin/edk/kernels/linux-2.2.14-5/include/ \ --enable-add-ons --disable-sanity-checks echo "Now go and change the config.make file from: _sample_goes_in_here_ (i.e. remove all the i486 and above sysdeps crap... guess I could awk it...) to read: config-sysdirs = sysdeps/i386/elf linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread \ linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/i386 \ sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common \ sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 \ sysdeps/unix sysdeps/posix sysdeps/i386/fpu sysdeps/libm-i387 sysdeps/i386 sysdeps/wordsize-32 \ sysdeps/ieee754 sysdeps/libm-ieee754 sysdeps/generic/elf sysdeps/generic sysdeps/i386/sys and press return when you are done " read junk make make install