tce-load -i compiletc cmake boost-1.65-dev http://downloads.sourceforge.net/clucene/clucene-core-2.3.3.4.tar.gz http://www.linuxfromscratch.org/patches/blfs/svn/clucene-2.3.3.4-contribs_lib-1.patch cd clucene-core-2.3.3.4 patch -Np1 -i ../clucene-2.3.3.4-contribs_lib-1.patch mkdir build cd build cmake -LAH -DCMAKE_C_FLAGS="-march=i486 -mtune=i686 -Os -pipe" -DCMAKE_CXX_FLAGS="-march=i486 -mtune=i686 -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE -DBUILD_CONTRIBS_LIB=ON -Wno-dev ../ find . -name CMakeCache.txt -type f -exec sed -i 's/-O3//g' {} \; make [1m 8.86s] sudo make install