tce-load -i compiletc nspr-dev sqlite3-dev perl5 wget https://archive.mozilla.org/pub/security/nss/releases/NSS_3_55_RTM/src/nss-3.55.tar.gz wget http://www.linuxfromscratch.org/patches/blfs/svn/nss-3.55-standalone-1.patch cd nss-3.55 patch -Np1 -i ../nss-3.55-standalone-1.patch cd nss find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; find . -name Linux.mk -type f -exec sed -i 's/-O2//g' {} \; make CC="gcc -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" BUILD_OPT=1 NSPR_INCLUDE_DIR=/usr/local/include/nspr USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz NSS_ENABLE_WERROR=0 NSS_USE_SYSTEM_SQLITE=1 [6m 54.17s] cd ../dist sudo install -m755 Linux*/lib/*.so /usr/local/lib sudo install -m644 Linux*/lib/*.chk /usr/local/lib sudo install -m644 Linux*/lib/libcrmf.a /usr/local/lib sudo install -m755 -d /usr/local/include/nss sudo cp -RL public/nss/* /usr/local/include/nss sudo cp -RL private/nss/* /usr/local/include/nss sudo chmod 644 /usr/local/include/nss/* sudo install -m755 Linux*/bin/certutil /usr/local/bin sudo install -m755 Linux*/bin/nss-config /usr/local/bin sudo install -m755 Linux*/bin/pk12util /usr/local/bin sudo install -m644 Linux*/lib/pkgconfig/nss.pc /usr/local/lib/pkgconfig edit nss.pc correct prefix