tce-load -i compiletc ncursesw-dev file-dev wget https://www.nano-editor.org/dist/v5/nano-5.3.tar.xz cd nano-5.3 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 find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m 9.70s] sudo make install The global nanorc file is: /usr/local/etc/nanorc Syntaxes get installed in: /usr/local/share/nano/