tce-load -i compiletc wget https://downloads.sourceforge.net/lame/lame-3.100.tar.gz cd lame-3.100 sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure edit configure ncurses/termcap.h -> ncursesw/termcap.h -lncurses -> -lncursesw CPPFLAG="-I/usr/local/include/ncursesw" LIBS="-L/usr/local/lib/ -lncursesw" CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --enable-mp3rtp find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [3m 1.71s] sudo make install