tce-load -i compiletc wget https://downloads.sourceforge.net/libpng/libpng-1.6.40.tar.xz wget https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-1.6.40-apng.patch.gz cd libpng-1.6.40 gzip -cd ../libpng-1.6.40-apng.patch.gz | patch -p1 LIBS="-lpthread" 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 --localstatedir=/var --disable-static find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m 14.08s] sudo make install