#!/bin/sh export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS=$CFLAGS" -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig tar -jxf gmp-4.2.4.tar.bz2 cd gmp-4.2.4 ./configure CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fexceptions -fno-rtti" make touch ../mark sudo make install cd .. find /usr/local/ -newer mark -not -type d > filelist tar -czf libgmp.tcel -T filelist advdef -z4 libgmp.tcel md5sum libgmp.tcel > libgmp.tcel.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../libgmp.tcel cd .. mkfs.cramfs $TCZDIR libgmp.tczl md5sum libgmp.tczl > libgmp.tczl.md5.txt rm -rf $TCZDIR rm -rf gmp-4.2.4.tar.bz2