summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>2010-11-27 20:50:46 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-11-27 21:29:03 (GMT)
commitfba6c2d76bf1a53ad587be264bdeeead29ad0090 (patch)
tree1838cdbf12504b6e63c07a80c99aefcb6f66da1b
parent72568d543b011be16f4bc68a06382f366ed46fd0 (diff)
downloadbuildroot-fba6c2d76bf1a53ad587be264bdeeead29ad0090.tar.gz
buildroot-fba6c2d76bf1a53ad587be264bdeeead29ad0090.tar.bz2
toolchain/crosstool-NG: use wide-char option
Push the wide-char options down to crosstool-NG config Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--toolchain/toolchain-crosstool-ng/crosstool-ng.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/toolchain-crosstool-ng/crosstool-ng.mk b/toolchain/toolchain-crosstool-ng/crosstool-ng.mk
index 25e12d2..2281daf 100644
--- a/toolchain/toolchain-crosstool-ng/crosstool-ng.mk
+++ b/toolchain/toolchain-crosstool-ng/crosstool-ng.mk
@@ -223,6 +223,13 @@ CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_SYSROOT_DIR_PREFIX)=.*:\1="":;
# uClibc specific options
ifeq ($(BR2_TOOLCHAIN_CTNG_uClibc),y)
+# Handle the wide-char option
+ifneq ($(call qstrip,$(BR2_USE_WCHAR)),)
+CTNG_FIX_DOT_CONFIG_SED += s:^\# (CT_LIBC_UCLIBC_WCHAR) is not set:\1=y:;
+else
+CTNG_FIX_DOT_CONFIG_SED += s:^(CT_LIBC_UCLIBC_WCHAR)=.*:\# \1 is not set:;
+endif
+
# Instruct CT-NG's .config where to find the uClibc's .config
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_LIBC_UCLIBC_CONFIG_FILE)=.*:\1="$(CTNG_DIR)/libc.config":;