From ecf07a43304b7ff6a6827a477410bbd352dc5ce6 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 3 Feb 2008 21:11:35 +0200 Subject: [PATCH] Improved gcc to inject nptl cross-compile tweaks through configcache Note: libc_cv_forced_unwind=yes and libc_cv_c_cleanup=yes" config cache variables are needed for all archs if TLS is enabled, and the config cache approach seems to be more reliable than patching! --- base/glibc/glibc.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index 9f435c606..28e9b4215 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -66,7 +66,12 @@ if [ $SDECFG_PKG_GLIBC_TLS = 1 ]; then var_append glibc_addons "," "nptl" var_append extraconfopt " " "--with-tls" var_append extraconfopt " " "--with-__thread" -else + + if atstage cross ; then + var_append configcache ' ' "libc_cv_forced_unwind=yes" + var_append configcache ' ' "libc_cv_c_cleanup=yes" + fi +else var_append glibc_addons "," "linuxthreads" var_append extraconfopt " " "--without-__thread" var_append extraconfopt " " "--disable-sanity-checks"