configure.tgt: Force initial-exec TLS model on Linux only.
* configure.tgt: Force initial-exec TLS model on Linux only. From-SVN: r119452
This commit is contained in:
parent
62801a96da
commit
a969000990
|
@ -1,3 +1,7 @@
|
||||||
|
2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||||
|
|
||||||
|
* configure.tgt: Force initial-exec TLS model on Linux only.
|
||||||
|
|
||||||
2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
|
2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* configure: Regenerated.
|
* configure: Regenerated.
|
||||||
|
|
|
@ -13,9 +13,14 @@
|
||||||
# Optimize TLS usage by avoiding the overhead of dynamic allocation.
|
# Optimize TLS usage by avoiding the overhead of dynamic allocation.
|
||||||
# This does require that the library be present during process
|
# This does require that the library be present during process
|
||||||
# startup, so mark the library as not to be dlopened.
|
# startup, so mark the library as not to be dlopened.
|
||||||
if test $have_tls = yes && test "$with_gnu_ld" = "yes"; then
|
if test $have_tls = yes ; then
|
||||||
|
case "${target}" in
|
||||||
|
|
||||||
|
*-*-linux*)
|
||||||
XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
|
XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
|
||||||
XLDFLAGS="${XLDFLAGS} -Wl,-z,nodlopen"
|
XLDFLAGS="${XLDFLAGS} -Wl,-z,nodlopen"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Since we require POSIX threads, assume a POSIX system by default.
|
# Since we require POSIX threads, assume a POSIX system by default.
|
||||||
|
|
Loading…
Reference in New Issue