From f9aaf837d506abb28e607ff86da03cbdf00cb40d Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Mon, 14 May 2018 23:23:36 +0200 Subject: [PATCH] Use sane CFLAGS while checking for strtok_r Instead of using the flags passed in via the environment. This makes `./configure CC=clang CFLAGS="-Weverything` work properly. --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6876829d..0443dbc7 100644 --- a/configure.ac +++ b/configure.ac @@ -766,9 +766,7 @@ AC_CHECK_FUNCS_ONCE([ \ AC_FUNC_STRERROR_R SAVE_CFLAGS="$CFLAGS" -# Emulate behavior of src/Makefile.am -if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -Wall -Werror" +CFLAGS="-Wall -Werror" fi AC_CACHE_CHECK([for strtok_r], -- 2.11.0