Source: http://joewing.net/projects/jwm/releases/jwm-2.2.2.tar.xz tce-load -i compiletc.tcz libXft-dev.tcz libXinerama-dev.tcz libXpm-dev.tcz libXmu-dev.tcz libpng-dev.tcz libjpeg-turbo-dev.tcz xorg-proto.tcz LDFLAGS="-Wl,-O1" CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-O2/ /g' {} \; make find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null sudo make install