tce-load -i compiletc cd libpng-1.6.34 gzip -cd ../libpng-1.6.34-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 sudo make install