mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Add dynamic CPU compile acceleration [skip ci]
This commit is contained in:
parent
da6c2a88b1
commit
84ed82d896
@ -11,12 +11,12 @@ php_dir=$(find $self_dir/source -name "php-*" -type d | tail -n1)
|
||||
function do_xml_compiler() {
|
||||
cd $self_dir/source/liblzma-* && \
|
||||
./configure && \
|
||||
make -j4 && \
|
||||
make -j$(cat /proc/cpuinfo | grep processor | wc -l) && \
|
||||
make install && \
|
||||
echo "liblzma compiled!" && sleep 2s && \
|
||||
cd ../libxml2-* && \
|
||||
./configure --prefix=/usr --with-lzma --without-python && \
|
||||
make -j4 && \
|
||||
make -j$(cat /proc/cpuinfo | grep processor | wc -l) && \
|
||||
make install && \
|
||||
echo "libxml2 compiled!" && sleep 2s
|
||||
}
|
||||
@ -34,7 +34,7 @@ function do_curl_compiler() {
|
||||
--without-libpsl \
|
||||
--without-lber \
|
||||
--enable-ares && \
|
||||
make -j4 && \
|
||||
make -j$(cat /proc/cpuinfo | grep processor | wc -l) && \
|
||||
make install && \
|
||||
echo "curl compiled!" && \
|
||||
cat "$self_dir/ac_override_1" "$php_dir/ext/curl/config.m4" "$self_dir/ac_override_2" > /tmp/aa && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user