From b553dc4fe68c02bb1ddbb4db906d43124b6be70a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 30 Jan 2015 21:54:58 -0500 Subject: [PATCH] fix failure of configure to detect gcc due to message translations based on patch by Vadim Ushakov. in general overriding LC_ALL rather than specific categories (here, LC_MESSAGES) is undesirable, but LC_ALL is easier and in this case there is nothing else that depends on the locale in this invocation of the compiler. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 673d2913..e80fdfb3 100755 --- a/configure +++ b/configure @@ -204,7 +204,7 @@ fi # musl-gcc wrapper, and for critical bug detection in some gcc versions. # printf "checking whether compiler is gcc... " -if fnmatch '*gcc\ version*' "$($CC -v 2>&1)" ; then +if fnmatch '*gcc\ version*' "$(LC_ALL=C $CC -v 2>&1)" ; then cc_is_gcc=yes else cc_is_gcc=no -- 2.25.1