1. extract ncurses-5.9 2. cd ncurses 3. exchange config.sub (just add foolos) and add +x 4. put termios.h in sysroot/usr/include/sys 5. ./configure --host=i686-foolos --without-tests --with-fallbacks=linux (or $ ./configure --host=i686-foolos --without-tests --with-fallbacks=linux --with-debug CFLAGS="-gstabs -O0" CXXFLAGS="-gstabs -O0" 6. make AS A WORKAROUND PASS: LDFLAGS=-lfool CC=i686-foolos-gcc