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