From: Bruno Haible Date: Thu, 20 Apr 2023 14:40:20 +0000 (+0200) Subject: Fix uses of libwinpthread on mingw 10. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2017d796d9d13ca35faf7d37802453ff7032cd47;p=gnulib.git Fix uses of libwinpthread on mingw 10. * m4/threadlib.m4 (gl_WEAK_SYMBOLS): On mingw, set the result to "guessing no". --- diff --git a/ChangeLog b/ChangeLog index 7e088d0c45..dd6a5b4ebe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-04-20 Bruno Haible + + Fix uses of libwinpthread on mingw 10. + * m4/threadlib.m4 (gl_WEAK_SYMBOLS): On mingw, set the result to + "guessing no". + 2023-04-20 Bruno Haible execute tests: Fix compilation error on mingw (regression 2023-01-17). diff --git a/m4/threadlib.m4 b/m4/threadlib.m4 index 6190397502..39c4896ae6 100644 --- a/m4/threadlib.m4 +++ b/m4/threadlib.m4 @@ -1,5 +1,5 @@ -# threadlib.m4 serial 32a -dnl Copyright (C) 2005-2022 Free Software Foundation, Inc. +# threadlib.m4 serial 32b +dnl Copyright (C) 2005-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -85,10 +85,11 @@ AC_DEFUN([gl_WEAK_SYMBOLS], AC_CACHE_CHECK([whether imported symbols can be declared weak], [gl_cv_have_weak], [case "$host_os" in - cygwin*) - dnl On Cygwin 3.2.0 with gcc 10.2, the test below would succeed, but - dnl programs that use pthread_in_use() with weak symbol references - dnl crash miserably at runtime. + cygwin* | mingw*) + dnl On Cygwin 3.2.0 with gcc 10.2, and likewise on mingw 10.0.0 with + dnl gcc 11.3, the test below would succeed, but programs that use + dnl pthread_in_use() with weak symbol references crash miserably at + dnl runtime. gl_cv_have_weak="guessing no" ;; *)