From 9880f3480f9768897f3b8e714d5317fb993bc5b3 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 20 Nov 2020 17:16:51 +1100 Subject: [PATCH] Restore correct flags during localtime_r check. We were restoring the wrong thing CPPFLAGS (we used CFLAGS) for any platform that doesn't have localtime_r. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9bf28ca58..35d1aca9f 100644 --- a/configure.ac +++ b/configure.ac @@ -1992,7 +1992,7 @@ AC_SEARCH_LIBS([clock_gettime], [rt], dnl check if we need -D_REENTRANT for localtime_r declaration. AC_CHECK_DECL([localtime_r], [], - [ saved_CPPFLAGS="$CFLAGS" + [ saved_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_REENTRANT" unset ac_cv_have_decl_localtime_r AC_CHECK_DECL([localtime_r], [],