Make libcurl even smaller

This commit is contained in:
Davidson Francis 2024-05-30 03:07:19 -03:00
parent a6b0172522
commit 36bea94512

View File

@ -5,6 +5,8 @@
# This is free and unencumbered software released into the public domain. # This is free and unencumbered software released into the public domain.
# #
set -e
# Backup current folder # Backup current folder
pushd . pushd .
export CURDIR="$( cd "$(dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" export CURDIR="$( cd "$(dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
@ -48,13 +50,15 @@ download_build_libcurl() {
echo "[+] Building cURL ..." echo "[+] Building cURL ..."
cd curl*/ cd curl*/
mkdir build && cd build/ mkdir -p build && cd build/
../configure \ ../configure \
--prefix="$MUSL_PREFIX" \ --prefix="$MUSL_PREFIX" \
--target=armv6-linux-musleabi \ --target=armv6-linux-musleabi \
--host=armv6-linux-musleabi \ --host=armv6-linux-musleabi \
--build=x86_64-linux-gnu \ --build=x86_64-linux-gnu \
--with-bearssl \ --with-bearssl \
--without-zlib \
--without-brotli \
--disable-ipv6 \ --disable-ipv6 \
--disable-ftp \ --disable-ftp \
--disable-gopher \ --disable-gopher \
@ -67,7 +71,24 @@ download_build_libcurl() {
--disable-smtp \ --disable-smtp \
--disable-telnet \ --disable-telnet \
--disable-tftp \ --disable-tftp \
--disable-hsts --disable-hsts \
--disable-largefile \
--disable-dependency-tracking \
--disable-shared \
--disable-proxy \
--disable-dict \
--disable-file \
--disable-unix-sockets \
--disable-alt-svc \
--disable-manual \
--disable-docs \
--disable-libcurl-option \
--disable-sspi \
--disable-progress-meter \
--disable-netrc \
--disable-dateparse \
--disable-mime \
--enable-pthreads
make -j$(nproc) make -j$(nproc)
make install make install