tce-load -i compiletc https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-1.6.37-apng.patch.gz cd libpng-1.6.37 gzip -cd ../libpng-1.6.37-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 11.87s] sudo make install