tce-load -i compiletc cmake boost-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 -DCMAKE_C_FLAGS="-mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS="-mtune=generic -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=release -DBUILD_CONTRIBS_LIB=ON -Wno-dev ../ find . -name CMakeCache.txt -type f -exec sed -i 's/-O2 -g//g' {} \; find . -name CMakeCache.txt -type f -exec sed -i 's/-O3//g' {} \; make sudo make install