tce-load -i compiletc nspr-dev sqlite3-dev perl5 cd nss-3.35 patch -Np1 -i ../nss-3.35-standalone-1.patch cd nss find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; find . -name Linux.mk -type f -exec sed -i 's/-O2//g' {} \; make -j1 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_USE_SYSTEM_SQLITE=1 [lto fails] [remove -Werror in places] 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