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
###############################################################################
$(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)