From 0c615b3e338c5ce6c09d42d2dd34b706c3d6b5aa Mon Sep 17 00:00:00 2001 From: Eric de Ruiter Date: Wed, 22 Jun 2022 21:33:37 +0200 Subject: [PATCH] Fix parallel compilation with pickle (#603) The MAKE environment variable seems to be only supported on pecl, not with pickle Use the MAKEFLAGS environment variable which is automatically passed to the child process and is directly supported by make --- install-php-extensions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index 49715cd..1abcf2c 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -3557,7 +3557,7 @@ installPeclPackage() { fi cat "$CONFIGURE_FILE" | MAKE="make -j$(getCompilationProcessorCount $1)" CPPFLAGS="${3:-}" pecl install "$installPeclPackage_path" else - MAKE="make -j$(getCompilationProcessorCount $1)" CPPFLAGS="${3:-}" /tmp/pickle install --tmp-dir=/tmp/pickle.tmp --no-interaction --version-override='' --with-configure-options "$CONFIGURE_FILE" -- "$installPeclPackage_path" + MAKEFLAGS="-j$(getCompilationProcessorCount $1)" CPPFLAGS="${3:-}" /tmp/pickle install --tmp-dir=/tmp/pickle.tmp --no-interaction --version-override='' --with-configure-options "$CONFIGURE_FILE" -- "$installPeclPackage_path" fi }