tce-load -lwi compiletc cmake nasm perl5 squashfs-tools wget -O- https://storage.googleapis.com/aom-releases/libaom-3.6.1.tar.gz | tar -xzvf - cd libaom-3.6.1/ mkdir build2 cd build2 CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti" cmake .. -DBUILD_SHARED_LIBS=1 CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti" make -j8 mkdir /tmp/libaom_temp make DESTDIR=/tmp/libaom_temp install find /tmp/libaom_temp -exec strip -s {} \; mksquashfs /tmp/libaom_temp/ ../../libaom.tcz -e usr/local/include -e usr/local/lib/pkgconfig/ usr/local/bin mksquashfs /tmp/libaom_temp/ ../../libaom-bin.tcz -e usr/local/include -e usr/local/lib rm -rf /tmp/libaom_temp/usr/local/lib/*.so* rm -rf /tmp/libaom_temp/usr/local/lib/*.a* mksquashfs /tmp/libaom_temp/ ../../libaom-dev.tcz -e usr/local/bin -e usr/local/lib/*.so*