tce-load -i compiletc ncursesw-dev cd dialog-1.3-20171209 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 --disable-static --with-ncursesw [-flto fails] find . -name makefile -type f -exec sed -i 's/-g -O2//g' {} \; make sudo make install