--- a/pcre2.SlackBuild 2021-02-11 16:22:53.144516660 +0200 +++ b/pcre2.SlackBuild 2021-02-11 16:23:36.352481029 +0200 @@ -59,6 +59,12 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "riscv64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -77,6 +83,8 @@ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ +[[ $ARCH != riscv64 ]] && JIT="--enable-jit" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -88,10 +96,10 @@ --enable-static=no \ --enable-pcre2-16 \ --enable-pcre2-32 \ - --enable-jit \ --enable-pcre2grep-libz \ --enable-pcre2grep-libbz2 \ --enable-pcre2test-libreadline \ + $JIT \ --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1