From cae4e238728ceee977900c6860f02d59061db803 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Sat, 18 Dec 2021 02:17:05 +0800 Subject: [PATCH] Update compile-php.sh --- docker/compile-php.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/compile-php.sh b/docker/compile-php.sh index 44a725e3..4c415c97 100755 --- a/docker/compile-php.sh +++ b/docker/compile-php.sh @@ -27,6 +27,6 @@ cd $php_dir && \ $self_dir/check-extensions.sh check_after_configure && \ sed -ie 's/-export-dynamic//g' "Makefile" && \ sed -ie 's/-o $(SAPI_CLI_PATH)/-all-static -o $(SAPI_CLI_PATH)/g' "Makefile" && \ - make LDFLAGS=-ldl -j4 && \ + make LDFLAGS=-ldl -j$(cat /proc/cpuinfo | grep processor | wc -l) && \ make install && \ - strip $self_dir/php-dist/bin/php \ No newline at end of file + strip $self_dir/php-dist/bin/php