Browse Source

glibc: Improved tls related cross-compile support for sparc64

user/amery/cross
Christian Wiese 17 years ago
committed by Alejandro Mery
parent
commit
a5bad11c8e
1 changed files with 14 additions and 2 deletions
  1. +14
    -2
      base/glibc/glibc.conf

+ 14
- 2
base/glibc/glibc.conf

@ -64,10 +64,22 @@ glibc_addons="ports"
# ckeck whether to enable nptl if supported by the architecture # ckeck whether to enable nptl if supported by the architecture
if [ $SDECFG_PKG_GLIBC_TLS = 1 ]; then if [ $SDECFG_PKG_GLIBC_TLS = 1 ]; then
var_append glibc_addons "," "nptl" var_append glibc_addons "," "nptl"
var_append extraconfopt " " "--with-tls"
var_append extraconfopt " " "--with-__thread"
if ! atstage native ; then if ! atstage native ; then
# tls config.cache tweaks for toolchain stage
if atstage toolchain ; then
case "$arch" in
sparc64)
tls_arch=sparc64
;;
esac
var_append configcache ' ' "libc_cv_${tls_arch}_tls=yes"
else
# extra configure options for cross stage
var_append extraconfopt " " "--with-tls"
var_append extraconfopt " " "--with-__thread"
fi
# tls config.cache tweaks for toolchain and cross stage
var_append configcache ' ' "libc_cv_forced_unwind=yes" var_append configcache ' ' "libc_cv_forced_unwind=yes"
var_append configcache ' ' "libc_cv_c_cleanup=yes" var_append configcache ' ' "libc_cv_c_cleanup=yes"
fi fi

Loading…
Cancel
Save