Disable extraneous linking in released binaries

Libraries present on the CI runner system might affect the released
binaries. Specifically, the MacOS runner in GitHub has librtsp, libidn2
and zstd installed, which makes curl link against them.

Explicitly disable these linking, as we want to keep the precompiled
binaries in our releases with minimal requirements. A user wishing to
use these specific features can build from source on a system with these
libraries present.
This commit is contained in:
lwthiker
2024-03-02 17:16:57 +02:00
parent 45a364bd22
commit c8465c126b
6 changed files with 41 additions and 14 deletions
+2 -1
View File
@@ -105,7 +105,8 @@ jobs:
if: matrix.arch == 'x86_64'
run: |
mkdir ${{ runner.temp }}/install
./configure --prefix=${{ runner.temp }}/install
./configure --prefix=${{ runner.temp }}/install \
CURL_CONFIG_FLAGS="--disable-rtsp --without-libidn2 --without-zstd"
# When cross compiling a more complicated configuration is needed, since
# curl's configure script can't figure out where some files and libraries