aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin2009-12-17 08:56:11 -0600
committerH. Peter Anvin2009-12-17 09:03:21 -0600
commitc051346b7db27aaf674b8f3b4955240580b2a58a (patch)
treeed5e3c018cb1ab22a5930c7dee71e815061b0020 /Makefile
parent6a1e008a0915f502eb026fb995ea3e49d5b017f7 (diff)
downloadkernel-omap-c051346b7db27aaf674b8f3b4955240580b2a58a.tar.gz
kernel-omap-c051346b7db27aaf674b8f3b4955240580b2a58a.tar.xz
kernel-omap-c051346b7db27aaf674b8f3b4955240580b2a58a.zip
Makefile: set LC_CTYPE, LC_COLLATE, LC_NUMERIC to C
There are a number of common Unix constructs like character ranges in grep/sed/awk which don't work as expected with LC_COLLATE set to other than C. Similarly, set LC_CTYPE and LC_NUMERIC to C to avoid other nasty surprises. In order to make sure these actually take effect we also have to clear LC_ALL. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Acked-by: Michal Marek <mmarek@sues.cz> Acked-by: Masami Hiramatsu <mhiramat@redhat.com> Acked-by: Roland Dreier <rdreier@cisco.com> Cc: Sam Ravnborg <sam@ravnborg.org> LKML-Reference: <4B2A1761.4070904@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 33d4732a6c4a..6e39af1d8bc4 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,13 @@ NAME = Man-Eating Seals of Antiquity
16# o print "Entering directory ..."; 16# o print "Entering directory ...";
17MAKEFLAGS += -rR --no-print-directory 17MAKEFLAGS += -rR --no-print-directory
18 18
19# Avoid funny character set dependencies
20LC_ALL=
21LC_CTYPE=C
22LC_COLLATE=C
23LC_NUMERIC=C
24export LC_ALL LC_CTYPE LC_COLLATE LC_NUMERIC
25
19# We are using a recursive build, so we need to do a little thinking 26# We are using a recursive build, so we need to do a little thinking
20# to get the ordering right. 27# to get the ordering right.
21# 28#