tce-load -i compiletc liblzma-dev liblz4-dev

wget https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz

cd zstd-1.5.2

find . -name Makefile -type f -exec sed -i 's/-O3//g' {} \;
find . -name libzstd.mk -type f -exec sed -i 's/-O3//g' {} \;

make 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" [5m 12.90s]

sudo make 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" install

==> building with threading support
==> building zstd with .gz compression support
==> building zstd with .xz/.lzma compression support
==> building zstd with .lz4 compression support
