--- a/mozilla-nss.SlackBuild 2021-06-11 18:07:42.381113558 +0000 +++ b/mozilla-nss.SlackBuild 2021-06-12 13:18:35.206770785 +0000 @@ -60,6 +60,14 @@ elif [ "$ARCH" = "armv7hl" ]; then SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" LIBDIRSUFFIX="" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + export USE_64=1 +elif [ "$ARCH" = "riscv64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + export USE_64=1 else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -92,8 +100,12 @@ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +if [[ $ARCH == "arch64" || $ARCH == "riscv64" ]]; then + OPTIONS="-Ddisable_arm32_neon=1 -Ddisable_arm_hw_aes=1 -Ddisable_arm_hw_sha1=1 -Ddisable_arm_hw_sha2=1" +fi + cd nss -./build.sh -v $NUMJOBS --opt --system-sqlite --enable-libpkix --disable-tests +./build.sh -v $NUMJOBS --opt --system-sqlite --enable-libpkix --disable-tests $OPTIONS cd - # Install all the needed stuff to the package dir: