mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 21:34:53 +08:00
add libiconv compiler
This commit is contained in:
parent
9cc703d424
commit
1b88682fcb
@ -111,7 +111,7 @@ function check_in_configure() {
|
||||
7.3.*|7.2.*) php_configure="$php_configure --enable-hash" ;;
|
||||
esac
|
||||
;;
|
||||
iconv) php_configure="$php_configure --with-iconv" ;;
|
||||
iconv) php_configure="$php_configure --with-iconv=/usr" ;;
|
||||
inotify) php_configure="$php_configure --enable-inotify" ;;
|
||||
json)
|
||||
case $1 in
|
||||
|
||||
@ -43,8 +43,20 @@ function do_curl_compiler() {
|
||||
echo "curl compiled!"
|
||||
}
|
||||
|
||||
function do_iconv_compiler() {
|
||||
cd $self_dir/source/libiconv-* && \
|
||||
./configure --enable-static=yes --prefix=/usr && \
|
||||
make -j$(cat /proc/cpuinfo | grep processor | wc -l) && \
|
||||
make install && \
|
||||
echo "libiconv compiled!"
|
||||
}
|
||||
|
||||
if [ ! -f "$self_dir/source/.deps-compiled" ]; then
|
||||
do_xml_compiler && do_curl_compiler && do_libzip_compiler && touch "$self_dir/source/.deps-compiled"
|
||||
do_xml_compiler && \
|
||||
do_curl_compiler && \
|
||||
do_libzip_compiler && \
|
||||
do_iconv_compiler && \
|
||||
touch "$self_dir/source/.deps-compiled"
|
||||
else
|
||||
echo "Skip compilation for dependencies"
|
||||
fi
|
||||
|
||||
@ -52,5 +52,10 @@
|
||||
"version": "1.8.0",
|
||||
"link": "https://mirrors.zhamao.xin/library/libzip/libzip-{version}.tar.gz",
|
||||
"link_2": "https://libzip.org/download/libzip-{version}.tar.gz"
|
||||
},
|
||||
"libiconv": {
|
||||
"version": "1.17",
|
||||
"link": "https://mirrors.zhamao.xin/library/libiconv/libiconv-{version}.tar.gz",
|
||||
"link_2": "https://ftp.gnu.org/gnu/libiconv/libiconv-{version}.tar.gz"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user