mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Update compile-php.sh
This commit is contained in:
parent
8fd3cab450
commit
9cc703d424
@ -112,8 +112,12 @@ cd $php_dir && \
|
|||||||
make LDFLAGS="-ldl" -j$(cat /proc/cpuinfo | grep processor | wc -l) && \
|
make LDFLAGS="-ldl" -j$(cat /proc/cpuinfo | grep processor | wc -l) && \
|
||||||
make install-cli && \
|
make install-cli && \
|
||||||
$self_dir/check-extensions.sh finish_compile && \
|
$self_dir/check-extensions.sh finish_compile && \
|
||||||
strip $self_dir/php-dist/bin/php && \
|
strip $self_dir/php-dist/bin/php
|
||||||
echo "Copying php binary to $OUT_DIR ..." && \
|
if [ $? != 0 ]; then
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
# 将 PHP 和 micro 输出到指定目录
|
||||||
|
echo "Copying php binary to $OUT_DIR ..." && \
|
||||||
cp $self_dir/php-dist/bin/php $OUT_DIR/ && \
|
cp $self_dir/php-dist/bin/php $OUT_DIR/ && \
|
||||||
test -f $php_dir/sapi/micro/micro.sfx && \
|
test -f $php_dir/sapi/micro/micro.sfx && \
|
||||||
echo "Copying micro.sfx binary to $OUT_DIR ..." && \
|
echo "Copying micro.sfx binary to $OUT_DIR ..." && \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user