grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Compilation with external intl library


From: Yves Blusseau
Subject: [PATCH] Compilation with external intl library
Date: Thu, 31 Dec 2009 17:54:54 +0100
User-agent: StGit/0.15-rc4-1-g9ba6

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]