cd /tmp #tce-load -iw compiletc gvim gperf curl-dev librsvg-dev libxml2-bin perl_XML-LibXML wget http://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-3.10.tar.gz tar xfz netsurf-all-3.10.tar.gz cd netsurf-all-3.10 sudo cpan install HTML::Entities cpan install HTML::Parser find . -name Makefile.defaults -type f -exec sed -i 's/-O2//g' {} \; find . -name Makefile.gcc -type f -exec sed -i 's/-O2//g' {} \; echo "override NETSURF_STRIP_BINARY := YES" > netsurf/Makefile.config mkdir /tmp/netsurf CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" PREFIX=/usr/local make install TARGET=framebuffer DESTDIR=/tmp/netsurf #tce-load -iw gtk2-dev CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" PREFIX=/usr/local make install TARGET=gtk2 DESTDIR=/tmp/netsurf #tce-load -iw gtk3-dev.tcz CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" PREFIX=/usr/local make install TARGET=gtk3 DESTDIR=/tmp/netsurf cd /tmp tce-load -iw squashfs-tools.tcz mksquashfs netsurf netsurf.tcz