tce-load -i compiletc readline-dev gettext

cd hunspell-1.3.3

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --with-ui --with-readline

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

make
sudo make install

edit src/tools/hunspell.cxx
#define LIBDIR                \
  "/usr/share/hunspell:"      \
  "/usr/local/share/hunspell:"      \
  "/usr/share/myspell:"       \
  "/usr/local/share/myspell:"       \
  "/usr/share/myspell/dicts:" \
  "/usr/local/share/myspell/dicts:" \

#ifdef HAVE_CURSES_H
#ifdef HAVE_NCURSESW_H
#include <ncursesw/ncurses.h>
