Enablelocales when requested to do so.
Original patch by Thomas PETAZZONI, with soe improvement by myself.
/trunk/scripts/build/libc/uClibc.sh | 10 9 1 0 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
1.1 --- a/scripts/build/libc/uClibc.sh Sat Nov 01 17:02:48 2008 +0000
1.2 +++ b/scripts/build/libc/uClibc.sh Sat Nov 01 17:13:54 2008 +0000
1.3 @@ -253,13 +253,21 @@
1.4 fi
1.5 fi
1.6
1.7 - # Force on options needed for C++ if we'll be making a C++ compiler.
1.8 + # Locales support
1.9 # Note that the two PREGEN_LOCALE and the XLOCALE lines may be missing
1.10 # entirely if LOCALE is not set. If LOCALE was already set, we'll
1.11 # assume the user has already made all the appropriate generation
1.12 # arrangements. Note that having the uClibc Makefile download the
1.13 # pregenerated locales is not compatible with crosstool; besides,
1.14 # crosstool downloads them as part of getandpatch.sh.
1.15 + if [ "${CT_LIBC_UCLIBC_LOCALES}" = "y" ] ; then
1.16 + cat >>"${munge_file}" <<-ENDSED
1.17 +s/^# UCLIBC_HAS_LOCALE is not set/UCLIBC_HAS_LOCALE=y\\nUCLIBC_PREGENERATED_LOCALE_DATA=y\\n\\# UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA is not set\\n\\# UCLIBC_HAS_XLOCALE is not
1.18 +ENDSED
1.19 + fi
1.20 +
1.21 + # Force on options needed for C++ if we'll be making a C++ compiler.
1.22 + # I'm not sure locales are a requirement for doing C++... Are they?
1.23 if [ "${CT_CC_LANG_CXX}" = "y" ]; then
1.24 cat >>"${munge_file}" <<-ENDSED
1.25 s/^# DO_C99_MATH is not set/DO_C99_MATH=y/