diff -r 3fd8d44ba9bc -r b7df125a1c78 scripts/build/libc/glibc-eglibc.sh-common --- a/scripts/build/libc/glibc-eglibc.sh-common Sun Mar 20 01:15:34 2011 +0100 +++ b/scripts/build/libc/glibc-eglibc.sh-common Sun May 15 18:51:40 2011 +0200 @@ -159,7 +159,7 @@ nptl) extra_config+=("--with-__thread" "--with-tls");; linuxthreads) extra_config+=("--with-__thread" "--without-tls" "--without-nptl");; none) extra_config+=("--without-__thread" "--without-nptl") - case "${CT_LIBC_GLIBC_EXTRA_CONFIG}" in + case "${CT_LIBC_GLIBC_EXTRA_CONFIG[*]}" in *-tls*) ;; *) extra_config+=("--without-tls");; esac @@ -250,7 +250,7 @@ --without-gd \ --with-headers="${CT_HEADERS_DIR}" \ "${extra_config[@]}" \ - ${CT_LIBC_GLIBC_EXTRA_CONFIG} + "${CT_LIBC_GLIBC_EXTRA_CONFIG[@]}" # build hacks case "${CT_ARCH},${CT_ARCH_CPU}" in @@ -300,7 +300,7 @@ do_libc_min_kernel_config() { local min_kernel_config - case "${CT_LIBC_GLIBC_EXTRA_CONFIG}" in + case "${CT_LIBC_GLIBC_EXTRA_CONFIG[*]}" in *--enable-kernel*) ;; *) if [ "${CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS}" = "y" ]; then # We can't rely on the kernel version from the configuration,