#!/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 mpfr-2.4.1.tar.bz2 cd mpfr-2.4.1 ./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 cat filelist | grep "include" > filelist2 cat filelist | grep "lib" >> filelist2 tar -czf libmpfr.tcel -T filelist2 advdef -z4 libmpfr.tcel md5sum libmpfr.tcel > libmpfr.tcel.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../libmpfr.tcel cd .. mkfs.cramfs $TCZDIR libmpfr.tczl md5sum libmpfr.tczl > libmpfr.tczl.md5.txt rm -rf $TCZDIR rm -rf mpfr-2.4.1 mark filelist*