Commit 847ac086 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

nss needs 3GB swap during build

parent 0f562dfd
all:
dd if=/dev/zero of=swap bs=1048576 count=3072
chmod 600 swap
mkswap swap
swapon swap
tar xf nss-3.54.tar.gz
patch -Np1 -d nss-3.54 < nss-3.54-standalone-1.patch
$(MAKE) -C nss-3.54/nss -j1 BUILD_OPT=1 NSPR_INCLUDE_DIR=/usr/include/nspr USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz NSS_ENABLE_WERROR=0 $$([ $$(uname -m) = x86_64 ] || [ $$(uname -m) = aarch64 ] && echo USE_64=1) $$([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)
install -v -m755 nss-3.54/dist/Linux*/lib/*.so /usr/lib
......@@ -10,3 +15,6 @@ all:
install -v -m755 nss-3.54/dist/Linux*/bin/{certutil,nss-config,pk12util} /usr/bin
install -v -m644 nss-3.54/dist/Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig
rm -rf nss-3.54
swapoff swap
rm -rf swap
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment