Skip to content

Commit 474d0d0

Browse files
committed
Test fix
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
1 parent f93f07a commit 474d0d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

m4/libcurl.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)