Browse Source

glibc: Improved tls related cross-compile support for sparc64

crossperl
Christian Wiese 17 years ago committed by Alejandro Mery
parent
commit
48895bf167
  1. 16
      base/glibc/glibc.conf

16
base/glibc/glibc.conf

@ -62,10 +62,22 @@ glibc_addons="ports"
# ckeck whether to enable nptl if supported by the architecture
if [ $SDECFG_PKG_GLIBC_TLS = 1 ]; then
var_append glibc_addons "," "nptl"
var_append extraconfopt " " "--with-tls"
var_append extraconfopt " " "--with-__thread"
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_c_cleanup=yes"
fi

Loading…
Cancel
Save