summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/pcre2/pcre2.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/pcre2/pcre2.mk b/package/pcre2/pcre2.mk
index 5b7a163255..b7da1ed991 100644
--- a/package/pcre2/pcre2.mk
+++ b/package/pcre2/pcre2.mk
@@ -16,5 +16,10 @@ PCRE2_CONF_OPTS += --enable-pcre2-8
PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_16),--enable-pcre2-16,--disable-pcre2-16)
PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_32),--enable-pcre2-32,--disable-pcre2-32)
+# disable fork usage if not available
+ifeq ($(BR2_USE_MMU),)
+PCRE2_CONF_OPTS += --disable-pcre2grep-callout
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))
OpenPOWER on IntegriCloud