A bit of a typo here, but i sorta guessed it out, lol
LIBS="-lncursesw" 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 --localstatedir=/var
Compiled, installed, and is running for me.
Thanks
[EDIT]: Added code tags. Rich