]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: use the pkg-config --libs-only-l flag for libssh2
authorDaniel Stenberg <daniel@haxx.se>
Fri, 28 Jul 2023 21:27:20 +0000 (23:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 29 Jul 2023 10:52:24 +0000 (12:52 +0200)
... instead of --libs, as that one also returns -L flags.

Reported-by: Wilhelm von Thiele
Fixes #11538
Closes #11539

configure.ac

index 71b9f5bf75f7c525c4ac0cbc40d3d008a21e06cb..c0515e9e98fa3ace327a35181d6d462074e01e9c 100644 (file)
@@ -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`