1. extract ncurses-5.9.tar.gz 2. apply patch inside direcotry with : patch -p1 < ../ncurses-5.9-foolos.patch .. tic foolterm.ti (to install locally) 3. build in seperate directory $ ../ncurses-xxx/configure --host=i686-foolos --without-tests --with-fallbacks=fool-term --with-debug CFLAGS="-gstabs -O0" CXXFLAGS="-gstabs -O0" --prefix=/home/miguel/opt/foolos/usr/ --with-termlib CC=i686-foolos-gcc symlink /usr/include/curses.h to ./ncurses/curses.h ??? FOR SOME REASON WE NEED TO PASS : CC=i686-foolos-gcc 6. make && make install