[build] Stop linking libdl with curl and libssh2.

This commit is contained in:
Suresh Sundriyal 2023-07-14 11:48:05 -07:00
parent 5d87712fa8
commit 3507118371

View File

@ -147,7 +147,7 @@ RUN curl -sSL https://www.libssh2.org/download/libssh2-1.11.0.tar.gz | tar xvzC
--with-libz-prefix=/fake.root \
--disable-shared \
"CPPFLAGS=-I/fake.root/include" \
"LDFLAGS=-ldl -L/fake.root/lib" && \
"LDFLAGS=-L/fake.root/lib" && \
make -j2 && \
make install && \
cd /extract && rm -rf *
@ -158,8 +158,7 @@ RUN curl -sSL https://curl.se/download/curl-8.1.2.tar.gz | tar xvzC /extract/ &&
--disable-shared \
--with-libssh2=/fake.root \
--with-ssl=/fake.root \
--with-zlib=/fake.root \
"LDFLAGS=-ldl" && \
--with-zlib=/fake.root && \
make -j2 && \
make install && \
cd /extract && rm -rf *