tce-load -wil compiletc acl-dev attr-dev zstd-dev liblz4-dev xxhash-dev

wget https://download.samba.org/pub/rsync/src/rsync-3.4.1.tar.gz

cd rsync-3.4.1

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --enable-acl-support --enable-xattr-support --enable-xxhash --disable-openssl [openssl is disabled since xxh checksums are faster anyway]

sed -i 's/-g -O2//' Makefile
make [0m 24.29s]
make DESTDIR=/tmp/dest install
