From 756c6a02ba2db97955fe78f76c2d72ee52e33b64 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 28 Jul 2023 23:27:20 +0200 Subject: [PATCH] configure: use the pkg-config --libs-only-l flag for libssh2 ... instead of --libs, as that one also returns -L flags. Reported-by: Wilhelm von Thiele Fixes #11538 Closes #11539 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 71b9f5bf75..c0515e9e98 100644 --- a/configure.ac +++ b/configure.ac @@ -2242,7 +2242,7 @@ if test X"$OPT_LIBSSH2" != Xno; then CURL_CHECK_PKGCONFIG(libssh2) if test "$PKGCONFIG" != "no" ; then - LIB_SSH2=`$PKGCONFIG --libs libssh2` + LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2` LD_SSH2=`$PKGCONFIG --libs-only-L libssh2` CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2` version=`$PKGCONFIG --modversion libssh2`