tce-load -i compiletc nspr-dev sqlite3-dev perl5 wget https://archive.mozilla.org/pub/security/nss/releases/NSS_3_104_RTM/src/nss-3.104.tar.gz wget https://www.linuxfromscratch.org/patches/blfs/svn/nss-3.104-standalone-1.patch cd nss-3.104 patch -Np1 -i ../nss-3.104-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 -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -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 USE_64=1 [7m 24.98s] 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