@@ -211,7 +211,7 @@ protected function buildCgi(): void
211211 $ concurrency = getenv ('SPC_CONCURRENCY ' ) ? '-j ' . getenv ('SPC_CONCURRENCY ' ) : '' ;
212212 shell ()->cd (SOURCE_PATH . '/php-src ' )
213213 ->exec ('sed -i "s|//lib|/lib|g" Makefile ' )
214- ->exec ("make -j {$ vars } cgi " );
214+ ->exec ("make { $ concurrency } {$ vars } cgi " );
215215
216216 if (!$ this ->getOption ('no-strip ' , false )) {
217217 shell ()->cd (SOURCE_PATH . '/php-src/sapi/cgi ' )->exec ('strip --strip-unneeded php-cgi ' );
@@ -247,7 +247,7 @@ protected function buildMicro(): void
247247
248248 shell ()->cd (SOURCE_PATH . '/php-src ' )
249249 ->exec ('sed -i "s|//lib|/lib|g" Makefile ' )
250- ->exec ("make -j {$ vars } micro " );
250+ ->exec ("make { $ concurrency } {$ vars } micro " );
251251
252252 $ this ->processMicroUPX ();
253253
@@ -267,7 +267,7 @@ protected function buildFpm(): void
267267 $ concurrency = getenv ('SPC_CONCURRENCY ' ) ? '-j ' . getenv ('SPC_CONCURRENCY ' ) : '' ;
268268 shell ()->cd (SOURCE_PATH . '/php-src ' )
269269 ->exec ('sed -i "s|//lib|/lib|g" Makefile ' )
270- ->exec ("make -j {$ vars } fpm " );
270+ ->exec ("make { $ concurrency } {$ vars } fpm " );
271271
272272 if (!$ this ->getOption ('no-strip ' , false )) {
273273 shell ()->cd (SOURCE_PATH . '/php-src/sapi/fpm ' )->exec ('strip --strip-unneeded php-fpm ' );
@@ -294,7 +294,7 @@ protected function buildEmbed(): void
294294 shell ()->cd (SOURCE_PATH . '/php-src ' )
295295 ->exec ('sed -i "s|//lib|/lib|g" Makefile ' )
296296 ->exec ('sed -i "s|^EXTENSION_DIR = .*|EXTENSION_DIR = / ' . basename (BUILD_MODULES_PATH ) . '|" Makefile ' )
297- ->exec (' make -j INSTALL_ROOT= ' . BUILD_ROOT_PATH . " {$ vars } install-sapi {$ install_modules } install-build install-headers install-programs " );
297+ ->exec (" make { $ concurrency } INSTALL_ROOT= " . BUILD_ROOT_PATH . " {$ vars } install-sapi {$ install_modules } install-build install-headers install-programs " );
298298
299299 $ ldflags = getenv ('SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS ' ) ?: '' ;
300300 $ libDir = BUILD_LIB_PATH ;
0 commit comments