@@ -68,7 +68,6 @@ init_env() {
68
68
echo " c-ares version: ${ARES_VERSION} "
69
69
70
70
export PKG_CONFIG_PATH=" ${PREFIX} /lib/pkgconfig:${PREFIX} /lib64/pkgconfig" ;
71
- export libssh2_unsupported_arch=" powerpc mipsel mips"
72
71
73
72
. /etc/os-release;
74
73
dist=${ID} ;
@@ -503,10 +502,6 @@ compile_tls() {
503
502
}
504
503
505
504
compile_libssh2 () {
506
- if echo " ${libssh2_unsupported_arch} " | grep -q " \\ b${ARCH} \\ b" ; then
507
- # TODO: libssh2 is failing to compile on powerpc, mipsel and mips, need to fix it
508
- return
509
- fi
510
505
echo " Compiling libssh2 ..."
511
506
512
507
local url
@@ -520,7 +515,8 @@ compile_libssh2() {
520
515
PKG_CONFIG=" pkg-config --static --with-path=${PREFIX} /lib/pkgconfig:${PREFIX} /lib64/pkgconfig" \
521
516
LDFLAGS=" -L${PREFIX} /lib -L${PREFIX} /lib64" \
522
517
./configure --host=" ${TARGET} " --prefix=" ${PREFIX} " --enable-static --enable-shared=no \
523
- --with-crypto=openssl --with-libssl-prefix=" ${PREFIX} " ;
518
+ --with-crypto=openssl --with-libssl-prefix=" ${PREFIX} " \
519
+ --disable-examples-build;
524
520
make -j " $( nproc) " ;
525
521
make install;
526
522
@@ -632,12 +628,7 @@ compile_zstd() {
632
628
633
629
curl_config () {
634
630
echo " Configuring curl ..."
635
- local enable_libssh2 with_openssl_quic
636
-
637
- enable_libssh2=" --with-libssh2"
638
- if echo " ${libssh2_unsupported_arch} " | grep -q " \\ b${ARCH} \\ b" ; then
639
- enable_libssh2=" "
640
- fi
631
+ local with_openssl_quic
641
632
642
633
# --with-openssl-quic and --with-ngtcp2 are mutually exclusive
643
634
with_openssl_quic=" "
@@ -658,7 +649,7 @@ curl_config() {
658
649
--enable-static --disable-shared \
659
650
--with-openssl " ${with_openssl_quic} " --with-brotli --with-zstd \
660
651
--with-nghttp2 --with-nghttp3 \
661
- --with-libidn2 " ${enable_libssh2} " \
652
+ --with-libidn2 --with-libssh2 \
662
653
--enable-hsts --enable-mime --enable-cookies \
663
654
--enable-http-auth --enable-manual \
664
655
--enable-proxy --enable-file --enable-http \
0 commit comments