Compiled on RPI4B-4G with 5.10.77-piCore-v8 Compile Flags: CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto -fuse-linker-plugin -fno-exceptions' CXXFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto -fuse-linker-plugin -fno-exceptions -fno-rtti' LDFLAGS='-Wl,-O1' export CFLAGS CXXFLAGS LDFLAGS Dependencies: compiletc llvm-bin Commands: tar -xf nspr-4.33.tar.gz cd nspr-4.33/nspr/ ## NOTE: run the commands below before configuring can get rid of these files: prerr.properties, compile-et.pl, lib*.a ## sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in ## sed -i 's#$(LIBRARY) ##' config/rules.mk ## EXPLANATION: ## prerr.properties - is a java jar file ## compile-et.pl - is a perl script (shebang needs adjustment) ## lib*.a - static libraries ## all above belongs to nspr-dev, they are only used in really rare occations ## they don't affect the rest of the files, so you can remove them later if you don't want them ## the impact to compile time is neglectable ./configure --prefix=/usr/local --localstatedir=/var --with-mozilla --with-pthreads time make -j4 real 0m 32.37s user 0m 41.12s sys 0m 7.00s DESTDIR=/tmp/packing-nspr make install mkdir -p /tmp/packing-nspr-dev/usr/local/lib cd /tmp mv packing-nspr/usr/local/include/ packing-nspr-dev/usr/local/ mv packing-nspr/usr/local/lib/*a packing-nspr-dev/usr/local/lib/ mv packing-nspr/usr/local/lib/pkgconfig/ packing-nspr-dev/usr/local/lib/ sed -i '1 s:.*:#!/usr/local/bin/perl:' packing-nspr/usr/local/bin/compile-et.pl mv packing-nspr/usr/local/bin packing-nspr-dev/usr/local/ mv packing-nspr/usr/local/share packing-nspr-dev/usr/local/ strip --strip-unneeded packing-nspr/usr/local/lib/*so llvm-strip --strip-debug packing-nspr-dev/usr/local/lib/*.a