curl: fix static linking

This commit is contained in:
Dylan Araps 2021-08-23 06:56:42 +03:00
parent 0f987bbd80
commit 692389cd2c
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,12 @@
#!/bin/sh -e
# Upstream recently broke static linking. It is still supported via LDFLAGS but
# this disables output of the shared library. This sed call adds -all-static to
# the curl commands' compilation (keeping libraries in tact).
# See: https://github.com/curl/curl/issues/7475
sed 's/\(curl_LDADD =\)/\1 -all-static/' src/Makefile.in > _
mv -f _ src/Makefile.in
./configure \
--prefix=/usr \
--enable-ipv6 \
@ -18,5 +25,5 @@
--without-libidn2 \
--without-zstd
make curl_LDFLAGS=-all-static
make
make install

View File

@ -1 +1 @@
7.78.0 1
7.78.0 2