From c1146a92ce05c42f70a6fb9007ceb3bf8067cb2f Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 12 Feb 2012 04:03:10 +0100 Subject: [PATCH] glibc: improved to help building/installing correct glibc headers at toolchain stage when TLS/NPTL support is enabled --- base/glibc/glibc.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index 4203444ee..0c4b54d3a 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -78,6 +78,13 @@ if [ $SDECFG_PKG_GLIBC_TLS = 1 ]; then var_append configcache ' ' "libc_cv_forced_unwind=yes" var_append configcache ' ' "libc_cv_c_cleanup=yes" fi + + # help building/installing correct glibc headers at toolchain stage + if atstage toolchain; then + case "$arch" in + x86) var_append configcache ' ' "libc_cv_386_tls=yes" ;; + esac + fi else var_append glibc_addons "," "linuxthreads" var_append extraconfopt " " "--without-__thread"