From 9755181f18cb21089ffadc71fa02a213c8e05d5b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 2 Jul 2003 07:27:39 +0000 Subject: [PATCH] Armored gcc -print-search-dirs against locales. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1827 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78360cf6..cdfa6827 100644 --- a/Makefile +++ b/Makefile @@ -223,7 +223,7 @@ endif # This magic is from the kernel Makefile. # Extra cflags for kbuild 2.4. The default is to forbid includes by kernel code # from user space headers. -kbuild_2_4_nostdinc := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') +kbuild_2_4_nostdinc := -nostdinc $(shell LC_ALL=C $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') MODCPPFLAGS += -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer $(ALL_CPPFLAGS) $(kbuild_2_4_nostdinc) MODCFLAGS += $(ALL_CFLAGS)