Update compile-php.sh

This commit is contained in:
Jerry Ma 2021-12-18 02:17:05 +08:00 committed by GitHub
parent 8b9251bb3a
commit cae4e23872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
strip $self_dir/php-dist/bin/php