From 17b114e27b5ec0853b2750829e14f36dd4499b1a Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 22 Nov 2022 09:52:31 +0100 Subject: [PATCH] configure.ac: Do not call undeclared exit function in __thread check The missing prototype may cause this test to fail. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 120797e62d..d19093a95b 100644 --- a/configure.ac +++ b/configure.ac @@ -63,7 +63,7 @@ AC_CACHE_CHECK([for __thread support], ac_cv___thread, [dnl AC_LINK_IFELSE([dnl AC_LANG_PROGRAM([[#undef __thread static __thread int a; int foo (int b) { return a + b; }]], - [[exit (foo (0));]])], + [[return foo (0);]])], ac_cv___thread=yes, ac_cv___thread=no) ]) AS_IF([test "x$ac_cv___thread" != xno],