cd mkdir newlib cd (package build directory) perl Makefile.PL LIB=~/newlib make make test make install cd ~/newlib tar cvf ../myDistro.tar * cd .. gzip myDistro.tar