tce-load -i compiletc liblzma-dev lzo-dev zstd-dev liblz4-dev https://github.com/plougher/squashfs-tools/archive/4.4.tar.gz cd squashfs-tools-4.4 patch -Np2 -i ../squashfs-tools_block_size.patch patch -Np2 -i ../squashfs-tools_perms.patch patch -Np1 -i ../squashfs-tools_xattr.patch cd squashfs-tools [sed -i 's@attr/xattr.h@sys/xattr.h@' *.c] Edit Makefile XZ_SUPPORT = 1 LZO_SUPPORT = 1 LZ4_SUPPORT = 1 ZSTD_SUPPORT = 1 #XATTR_SUPPORT = 1 CFLAGS ?= make CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" [0m 6.79s] sudo make CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" install