From: ebotcazou Date: Sat, 2 Dec 2006 20:01:34 +0000 (+0000) Subject: * configure.tgt: Force initial-exec TLS model on Linux only. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=656db5a099f8489a0bce89afecb7c76192540d03 * 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 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 56d43681be9..7b19325f2f1 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2006-12-02 Eric Botcazou + + * configure.tgt: Force initial-exec TLS model on Linux only. + 2006-11-13 Daniel Jacobowitz * configure: Regenerated. diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index 7464d6a1cdf..89bae02e80a 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt @@ -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.