tce-load -i compiletc elfutils-dev liblzma-dev nss-dev file-dev popt-dev libarchive-dev cd rpm-4.13.0.1 edit configure remove nss/nspr header checks wget http://download.oracle.com/berkeley-db/db-4.5.20.tar.gz tar xzf db-4.5.20.tar.gz ln -s db-4.5.20 db CPPFLAGS="-I/usr/local/include/nss -I/usr/local/include/nspr" LIBS="-lnss3 -lnspr4" CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --without-lua find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; edit tools/sepdebugcrcfix.c #define PACKAGE "libgrive" /* dummy to keep happy */ #include make sudo make install