File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,11 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
256256 _libcurl_save_cppflags=$CPPFLAGS
257257 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
258258 _libcurl_save_libs=$LIBS
259+ # there is a bug with libcurl built with openssl using vcpkg
260+ # that fails on this test binary only
261+ # remove -pthread from LIBS to avoid the issue
259262 LIBS="$LIBS $LIBCURL"
263+ LIBS="`echo $LIBS | sed -e 's/-pthread//g'`"
260264
261265 AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ #include <curl/curl.h>] ,[
262266/* Try and use a few common options to force a failure if we are
@@ -285,7 +289,11 @@ x=CURLOPT_VERBOSE;
285289 _libcurl_save_cppflags=$CPPFLAGS
286290 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
287291 _libcurl_save_libs=$LIBS
292+ # there is a bug with libcurl built with openssl using vcpkg
293+ # that fails on this test binary only
294+ # remove -pthread from LIBS to avoid the issue
288295 LIBS="$LIBS $LIBCURL"
296+ LIBS="`echo $LIBS | sed -e 's/-pthread//g'`"
289297
290298 AC_CHECK_FUNC ( curl_free ,,
291299 AC_DEFINE ( curl_free ,free ,
You can’t perform that action at this time.
0 commit comments