tce-load -i libX11-dev autoconf

cd xrectsel-0.3.2/

./bootstrap
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
find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
make
sudo make install