diff --git a/deps/Makefile b/deps/Makefile index 5d282be4246b6..1e73f67640a89 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -747,6 +747,7 @@ pcre2-$(PCRE_VER)/configure: pcre2-$(PCRE_VER).tar.bz2 pcre2-$(PCRE_VER)/config.status: pcre2-$(PCRE_VER)/configure cd pcre2-$(PCRE_VER) && \ ./configure $(CONFIGURE_COMMON) --enable-jit --includedir=$(build_includedir) + patch -p0 pcre2-10.10/RunTest < pcre2_RunTest.patch touch -c $@ $(PCRE_SRC_TARGET): pcre2-$(PCRE_VER)/config.status $(MAKE) -C pcre2-$(PCRE_VER) $(LIBTOOL_CCLD) diff --git a/deps/pcre2_RunTest.patch b/deps/pcre2_RunTest.patch new file mode 100644 index 0000000000000..fec52e0b229af --- /dev/null +++ b/deps/pcre2_RunTest.patch @@ -0,0 +1,11 @@ +290c290,297 +< test2stack="-S 16" +--- +> # Attempt to auto-detect the maximum stack size: +> MAX_STACK=$(( $(ulimit -H -s)/1024 )) +> +> # if that fails, default to 16MB +> if [ "$MAX_STACK" -eq 0 ]; then +> MAX_STACK=16 +> fi +> test2stack="-S $MAX_STACK"