From: Yves Blusseau <blusseau@zetam.org>
To: grub-devel@gnu.org
Subject: [PATCH] Compilation with external intl library
Date: Thu, 31 Dec 2009 17:54:54 +0100 [thread overview]
Message-ID: <20091231165323.28764.29229.stgit@yves.private.network> (raw)
Hi,
this is the NEW patch to "fix" compilation with external intl library. It fix the #28356 bug (http://savannah.gnu.org/bugs/?28356).
I follow strictly the guideline of gettext, and now we can compile grub with external intl library.
Some enhancements;
- We can disable NLS (Native Language Support) with the --disable-nls configure flag.
- We can choose where the external intl library is with the --with-libintl-prefix configure flag.
Under linux the gettext macro detect that the gettext function is in libc and so don't add any flags (like before).
On other platform like Mac OSX, the macro add the proper compile and link flags (ex: -lintl -liconv -lc -Wl,-framework -Wl,CoreFoundation in OSX)
Best Regards,
Yves Blusseau
PS: if it ok i'll commit this patch and will add another one to make on error if the intl library can't be use and show alternative to compile grub.
---
ChangeLog.bad-cast | 6
ChangeLog.config.rpath | 5
ChangeLog.intl | 27 +
Makefile.in | 7
conf/common.rmk | 2
config.rpath | 666 +++++++++++++++++++++++++++++++
configure.ac | 2
include/grub/i18n.h | 36 +-
include/grub/util/misc.h | 2
util/grub-editenv.c | 5
util/grub-emu.c | 5
util/grub-fstest.c | 5
util/grub-probe.c | 5
util/i386/pc/grub-setup.c | 5
util/misc.c | 11 +
util/mkisofs/mkisofs.c | 7
util/mkisofs/mkisofs.h | 5
util/sparc64/ieee1275/grub-ofpathname.c | 5
util/sparc64/ieee1275/grub-setup.c | 5
19 files changed, 773 insertions(+), 38 deletions(-)
create mode 100644 ChangeLog.bad-cast
create mode 100644 ChangeLog.config.rpath
create mode 100644 ChangeLog.intl
create mode 100644 config.rpath
--
Yves Blusseau
next reply other threads:[~2009-12-31 16:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 16:54 Yves Blusseau [this message]
2009-12-31 16:54 ` [PATCH 1/3] Compilation with external intl library Yves Blusseau
2009-12-31 16:55 ` [PATCH 2/3] " Yves Blusseau
2010-01-01 12:08 ` Robert Millan
2009-12-31 16:55 ` [PATCH 3/3] " Yves Blusseau
2010-01-01 12:09 ` Robert Millan
-- strict thread matches above, loose matches on Subject: below --
2009-12-30 10:23 [PATCH] compilation " Yves Blusseau
2010-01-01 12:00 ` Robert Millan
2010-01-01 12:35 ` Robert Millan
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=20091231165323.28764.29229.stgit@yves.private.network \
--to=blusseau@zetam.org \
--cc=grub-devel@gnu.org \
/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.