This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[crosstool-ng] [PATCH] Enable locales in uClibc .config


Hi,

When enabling locales in crosstool-ng, uClibc doesn't get compiled with
locale support (UCLIBC_HAS_LOCALE remains unset in uClibc .config). The
following patch fixes this.

However, the patch doesn't set UCLIBC_PREGENERATED_LOCALE_DATA, but
uClibc configuration strongly suggests to use it. Maybe we should
conform to this recommandation ?

Sincerly,

Thomas

Index: scripts/build/libc/uClibc.sh
===================================================================
--- scripts/build/libc/uClibc.sh	(revision 1106)
+++ scripts/build/libc/uClibc.sh	(working copy)
@@ -185,6 +185,12 @@
 ENDSED
     fi
 
+    if [ "${CT_LIBC_UCLIBC_LOCALES}" = "y" ] ; then
+	cat >>"${munge_file}" <<-ENDSED
+s/.*(UCLIBC_HAS_LOCALE).*/\\1=y/
+ENDSED
+    fi
+
     # Accomodate for old and new uClibc versions, where the
     # way to select between big/little endian has changed
     case "${CT_ARCH_BE},${CT_ARCH_LE}" in


-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]