Skip to content

Commit

Permalink
fix failure of configure to detect gcc due to message translations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
richfelker committed Jan 31, 2015
1 parent ecb6081 commit b553dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b553dc4

Please sign in to comment.