1. extract ncurses-5.9.tar.gz 2. apply patch inside direcotry with : patch -p1 < ../ncurses-5.9-foolos.patch 3. build in seperate directory 5. ../ncurses-xxx/configure --host=i686-foolos --without-tests --with-fallbacks=linux (or $ ../ncurses-xxx/configure --host=i686-foolos --without-tests --with-fallbacks=linux --with-debug CFLAGS="-gstabs -O0" CXXFLAGS="-gstabs -O0") ??? FOR SOME REASON WE NEED TO PASS : CC=i686-foolos-gcc 6. make