Browse Source

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!
user/amery/cross
Christian Wiese 17 years ago
committed by Alejandro Mery
parent
commit
ecf07a4330
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      base/glibc/glibc.conf

+ 6
- 1
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"

Loading…
Cancel
Save