From e7163a46c47a7cf24e77d72603d5ca74ae3354d9 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Mon, 27 Feb 2017 22:05:31 -0800 Subject: Skip locale build on Cygwin Signed-off-by: Alexey Neyman diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 348c35a..c12a553 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -526,6 +526,15 @@ do_libc_locales() { local -a extra_config local glibc_cflags + # To build locales, we'd need to build glibc for the build machine. + # Bail out if the host is not supported. + case "${CT_BUILD}" in + *-cygwin) + CT_DoLog EXTRA "Skipping GNU libc locales: incompatible build machine" + return + ;; + esac + mkdir -p "${CT_BUILD_DIR}/build-localedef" cd "${CT_BUILD_DIR}/build-localedef" -- cgit v0.10.2-6-g49f6 From 2c2cbd9b9ab7509ca1a98c654d503fc4534c4d8a Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Mon, 27 Feb 2017 22:26:06 -0800 Subject: Add a warning in menuconfig about locales Signed-off-by: Alexey Neyman diff --git a/config/libc/glibc.in.2 b/config/libc/glibc.in.2 index 9d3c2e1..93b7b59 100644 --- a/config/libc/glibc.in.2 +++ b/config/libc/glibc.in.2 @@ -136,12 +136,15 @@ config LIBC_LOCALES which is required in order to support internationalization. if LIBC_glibc && LIBC_LOCALES -comment "WARNING! " +comment "WARNING! " comment "| The built locales will be usable if and only if the build " comment "| machine and the target: " comment "| - have the same endianness, " comment "| - and have the same alignment requirements for uint32_t. " comment "| You will have to check by yourself (for now). " +comment "WARNING! " +comment "| Building GLIBC locales requires that GLIBC supports " +comment "| the build machine as the target. " endif # LIBC_glibc && LIBC_LOCALES if KERNEL_linux -- cgit v0.10.2-6-g49f6