PATCH_LIST=( "fix_hostip_build.diff" ) FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://curl.haxx.se/download/${PKGRADIX}-7.87.0.tar.gz MAKEDEPENDS=( 'zlib-*:::*.so *.so.* *.h' 'openssl-*:::*.so *.so.* *.h' 'ngtcp2-*:::*.a *.h' 'nghttp2-*:::*.a *.h' 'nghttp3-*:::*.a *.h' ) function do_config { # Sometimes, broken packages will need LD="$CC" CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables" \ PKG_CONFIG_PATH=/tmp PKG_CONFIG=/bin/true \ LIBS='-lnghttp2 -lnghttp3 -lngtcp2_crypto_openssl -lngtcp2 -lssl -lcrypto -lz -Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections' \ ./configure \ --build=${FLXHOST} --host=${FLXTARG} \ --prefix=/usr --sysconfdir=/etc \ --disable-nls --disable-locale --without-libidn \ --disable-shared --enable-static --disable-thread --disable-alt-svc \ --disable-verbose --disable-versioned-symbols --enable-hidden-symbols \ --disable-debug --disable-curldebug --disable-ares --disable-rt \ --disable-ech --disable-code-coverage \ --disable-ftp --disable-ldap --disable-file --disable-ldaps \ --disable-rtsp --disable-dict --disable-telnet --disable-tftp \ --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher \ --disable-mqtt --disable-manual --disable-libcurl-option \ --disable-openssl-auto-load-config --disable-ntlm-wb --disable-sspi --disable-dateparse \ --disable-socketpair --disable-netrc --disable-dnsshuffle --disable-get-easy-options --without-brotli \ --disable-unix-sockets --disable-headers-api --enable-http2 \ --disable-threaded-resolver --disable-crypto_auth --disable-tls-srp \ --enable-proxy --enable-http --enable-ipv6 --enable-cookies \ --disable-doh --disable-hsts --enable-progress-meter --with-ssl="${FLXROOTDIR}/usr/" --with-zlib --with-nghttp2="${FLXROOTDIR}/usr/" --with-nghttp3="${FLXROOTDIR}/usr/" --with-ngtcp2="${FLXROOTDIR}/usr/"\ --disable-largefile # --disable-doh needs a patch, otherwise v7.76 does not build # --disable-largefile seems to have no effect, it seems the configure tests some data type sizes to enable or disable it } function do_compile_only { $FLXPMAKE V=1 CFLAGS="-g $GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" SYSROOT=$FLXROOTDIR } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }