]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
pcre2: Disable JIT for RISC-V
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Mar 2021 11:04:09 +0000 (11:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Mar 2021 11:14:51 +0000 (11:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/pcre2

index d5d6c8e950609d71b389209dc825a4e78b06d085..c2042e9022ea69137ab0795882a00b817ded3f2e 100644 (file)
--- a/lfs/pcre2
+++ b/lfs/pcre2
@@ -32,6 +32,20 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+CONFIGURE_ARGS = \
+       --prefix=/usr \
+       --disable-static \
+       --enable-unicode \
+       --enable-pcre2-16 \
+       --enable-pcre2-32 \
+       --docdir=/usr/share/doc/pcre-$(THISAPP)
+
+ifeq "$(BUILD_ARCH)" "riscv64"
+       CONFIGURE_ARGS += --disable-jit
+else
+       CONFIGURE_ARGS += --enable-jit
+endif
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -70,14 +84,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure \
-               --prefix=/usr \
-               --disable-static \
-               --enable-unicode \
-               --enable-jit \
-               --enable-pcre2-16 \
-               --enable-pcre2-32 \
-               --docdir=/usr/share/doc/pcre-$(THISAPP)
+       cd $(DIR_APP) && ./configure $(CONFIGURE_ARGS)
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)