#!/bin/sh # Built on TCL v2.1rc2 # Required extensions: # compiletc # binutils # base-devs # bison # diffutils # file # findutils # flex # gawk # gcc # gperf # grep # m4 # make # patch # pkg-config # sed # advcomp # squashfs-tools-4.0 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 export EXTNAME="mhash" export VER="-0.9.9.9" tar -jxf $EXTNAME$VER.tar.bz2 cd $EXTNAME$VER ./configure CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" make touch ../mark sudo make install cd .. find /usr/local/ -newer mark -not -type d > filelist export LIBNAME="libmhash" tar -czf $LIBNAME.tcel -T filelist advdef -z4 $LIBNAME.tcel md5sum $LIBNAME.tcel > $LIBNAME.tcel.md5.txt mkdir $LIBNAME cd $LIBNAME tar zxf ../$LIBNAME.tcel cd .. mksquashfs $LIBNAME $LIBNAME.tczl md5sum $LIBNAME.tczl > $LIBNAME.tczl.md5.txt rm -rf $LIBNAME rm -rf $EXTNAME$VER mark filelist