tce-load -i compiletc bzip2-dev openssl-1.1.1-dev ncursesw-dev

https://invisible-mirror.net/archives/lynx/tarballs/lynx2.8.9rel.1.tar.bz2

cd lynx2.8.9rel.1

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --with-zlib --with-bzlib --with-ssl --with-screen=ncursesw --enable-locale-charset

find . -name makefile -type f -exec sed -i 's/-O2//g' {} \;

make [0m 41.93s]
sudo make install

sed -e '/#LOCALE/     a LOCALE_CHARSET:TRUE' -i /usr/local/etc/lynx.cfg

sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' -i /usr/local/etc/lynx.cfg

sed -e '/#PERSIST/    a PERSISTENT_COOKIES:TRUE' -i /usr/local/etc/lynx.cfg
