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: Wed, 30 Dec 2009 11:23:38 +0100

Hi,

this is the 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.

Attachment: intl.patch
Description: Binary data

 


reply via email to

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