Skip to content
Snippets Groups Projects
Commit 656db5a0 authored by ebotcazou's avatar ebotcazou
Browse files

* configure.tgt: Force initial-exec TLS model on Linux only.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119452 138bc75d-0d04-0410-961f-82ee72b054a4
parent 074377fd
No related merge requests found
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>
* configure: Regenerated.
......
......@@ -13,9 +13,14 @@
# Optimize TLS usage by avoiding the overhead of dynamic allocation.
# This does require that the library be present during process
# 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"
XLDFLAGS="${XLDFLAGS} -Wl,-z,nodlopen"
;;
esac
fi
# Since we require POSIX threads, assume a POSIX system by default.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment