]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: set CURL_LIBRARY_PATH for nghttp2
authorBernhard Walle <bernhard.walle@ncp-e.com>
Thu, 27 Jan 2022 17:40:28 +0000 (18:40 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 28 Jan 2022 14:55:12 +0000 (15:55 +0100)
To execute the test program, we might need the library path so that the
lib is found at runtime.

Closes #8340

configure.ac

index ff139882c3638e29ab28b4e08690fa8dc0c3fb69..4708fd56bb77117c6cc997ff2a407c159cc31036 100644 (file)
@@ -2577,6 +2577,11 @@ if test X"$want_nghttp2" != Xno; then
           NGHTTP2_ENABLED=1
           AC_DEFINE(USE_NGHTTP2, 1, [if nghttp2 is in use])
           AC_SUBST(USE_NGHTTP2, [1])
+
+          DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
+          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
+          export CURL_LIBRARY_PATH
+          AC_MSG_NOTICE([Added $DIR_H2 to CURL_LIBRARY_PATH])
        )
       ],
         dnl not found, revert back to clean variables