tce-load -i compiletc git liblzma-dev lzo-dev zstd-dev cd squashfs-tools cd squashfs-tools sed -i 's@attr/xattr.h@sys/xattr.h@' *.c patch -Np2 -i ../../squashfs-tools_block_size.patch patch -Np2 -i ../../squashfs-tools_perms.patch Edit Makefile XZ_SUPPORT = 1 LZO_SUPPORT = 1 ZSTD_SUPPORT = 1 #XATTR_SUPPORT = 1 CFLAGS ?= make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" sudo make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" install