summaryrefslogtreecommitdiff
path: root/scripts/build/libc/uClibc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-01 17:13:54 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-01 17:13:54 (GMT)
commit958855acea2822ce05e18a9c26a91af8791e78d3 (patch)
tree43708072311a11e7cfe594526f0cd97f02677c92 /scripts/build/libc/uClibc.sh
parentdde482bd0d0d2d97bbba5d8cdda863b6b6580ca6 (diff)
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(-)
Diffstat (limited to 'scripts/build/libc/uClibc.sh')
-rw-r--r--scripts/build/libc/uClibc.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh
index 485d45a..0d43d45 100644
--- a/scripts/build/libc/uClibc.sh
+++ b/scripts/build/libc/uClibc.sh
@@ -253,13 +253,21 @@ ENDSED
fi
fi
- # Force on options needed for C++ if we'll be making a C++ compiler.
+ # Locales support
# Note that the two PREGEN_LOCALE and the XLOCALE lines may be missing
# entirely if LOCALE is not set. If LOCALE was already set, we'll
# assume the user has already made all the appropriate generation
# arrangements. Note that having the uClibc Makefile download the
# pregenerated locales is not compatible with crosstool; besides,
# crosstool downloads them as part of getandpatch.sh.
+ if [ "${CT_LIBC_UCLIBC_LOCALES}" = "y" ] ; then
+ cat >>"${munge_file}" <<-ENDSED
+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
+ENDSED
+ fi
+
+ # Force on options needed for C++ if we'll be making a C++ compiler.
+ # I'm not sure locales are a requirement for doing C++... Are they?
if [ "${CT_CC_LANG_CXX}" = "y" ]; then
cat >>"${munge_file}" <<-ENDSED
s/^# DO_C99_MATH is not set/DO_C99_MATH=y/