tce-load -wi compiletc

https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-1.0.20210914.zip

src/Makefile: 
PREFIX ?= /usr/local
WITH_WGQUICK ?= yes

cd wireguard-tools-1.0.20210914/src
export CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe"
export CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti"
make
sudo make install

copy "stat" utility from GNU coreutils to extension's /usr/local/bin/
