From: Akio Takebe <takebe_akio@jp.fujitsu.com>
To: xen-devel@lists.xensource.com
Subject: [Patch] RFC: add LANG=C in stubdom's Makefile
Date: Thu, 28 Aug 2008 17:14:20 +0900 [thread overview]
Message-ID: <48B65E5C.2060200@jp.fujitsu.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2023 bytes --]
Hi,
I got a compile error of stubdom.
My environment is LANG=ja_JP.UTF-8,
and "gcc -print-search-dirs" prints Japanese messase.
[e.g.]
# echo $LANG
ja_JP.UTF-8
# gcc -print-search-dirs
インストール: /usr/lib/gcc/i386-redhat-linux/4.3.0/
プログラム: =/usr/libexec/gcc/i386-redhat-linux/4.3.0/:/usr/libexec/gcc/i386-redhat-linux/4.3.0/:/usr/libexec/gcc/i386-redhat-linux/:/usr/lib/gcc/i386-redhat-linux/4.3.0/:/usr/lib/gcc/i386-redhat-linux/:/usr/libexec/gcc/i386-redhat-linux/4.3.0/:/usr/libexec/gcc/i386-redhat-linux/:/usr/lib/gcc/i386-redhat-linux/4.3.0/:/usr/lib/gcc/i386-redhat-linux/:/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../i386-redhat-linux/bin/i386-redhat-linux/4.3.0/:/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../i386-redhat-linux/bin/
ライブラリ: =/usr/lib/gcc/i386-redhat-linux/4.3.0/:/usr/lib/gcc/i386-redhat-linux/4.3.0/:/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../i386-redhat-linux/lib/i386-redhat-linux/4.3.0/:/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../i386-redhat-linux/lib/:/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../i386-redhat-linux/4.3.0/:/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../:/lib/i386-redhat-linux/4.3.0/:/lib/:/usr/lib/i386-redhat-linux/4.3.0/:/usr/lib/
So shell command of stubdom's Makefile doesn't work.
I made a patch for Japanese people. :)
How about it?
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Best Regards,
Akio Takebe
diff -r 6c50c7d089d9 stubdom/Makefile
--- a/stubdom/Makefile Wed Aug 27 15:16:13 2008 +0100
+++ b/stubdom/Makefile Thu Aug 28 17:10:38 2008 +0900
@@ -53,7 +53,7 @@
TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
# Do not use host headers and libs
-GCC_INSTALL = $(shell gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p')
+GCC_INSTALL = $(shell LANG=C gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p')
TARGET_CPPFLAGS += -U __linux__ -U __FreeBSD__ -U __sun__
TARGET_CPPFLAGS += -nostdinc
TARGET_CPPFLAGS += -isystem $(CURDIR)/$(MINI_OS)/include/posix
[-- Attachment #2: fix_compile_error_of_stubdom.patch --]
[-- Type: text/x-diff, Size: 598 bytes --]
diff -r 6c50c7d089d9 stubdom/Makefile
--- a/stubdom/Makefile Wed Aug 27 15:16:13 2008 +0100
+++ b/stubdom/Makefile Thu Aug 28 17:11:08 2008 +0900
@@ -53,7 +53,7 @@
TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
# Do not use host headers and libs
-GCC_INSTALL = $(shell gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p')
+GCC_INSTALL = $(shell LANG=C gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p')
TARGET_CPPFLAGS += -U __linux__ -U __FreeBSD__ -U __sun__
TARGET_CPPFLAGS += -nostdinc
TARGET_CPPFLAGS += -isystem $(CURDIR)/$(MINI_OS)/include/posix
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2008-08-28 8:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 8:14 Akio Takebe [this message]
2008-08-28 8:54 ` [Patch] RFC: add LANG=C in stubdom's Makefile Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B65E5C.2060200@jp.fujitsu.com \
--to=takebe_akio@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.