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 CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [1m 2.85s] make install