tce-load -i compiletc nspr-dev sqlite3-dev perl5 wget https://archive.mozilla.org/pub/security/nss/releases/NSS_3_74_RTM/src/nss-3.74.tar.gz wget https://www.linuxfromscratch.org/patches/blfs/svn/nss-3.74-standalone-1.patch cd nss-3.74 patch -Np1 -i ../nss-3.74-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 [8m 14.64s] 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 correct path in nss.pc, nss-config