aboutsummaryrefslogtreecommitdiff
path: root/libgomp/configure.tgt
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2006-12-02 21:01:34 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-12-02 20:01:34 +0000
commita9690009903e4d8df766361db87da3098f4aa42f (patch)
tree85a17410893e1753dc4c7855f5bde02236963cfa /libgomp/configure.tgt
parent62801a96da9c80f7347b45f4b3613e815a5c09b8 (diff)
downloadgcc-a9690009903e4d8df766361db87da3098f4aa42f.zip
gcc-a9690009903e4d8df766361db87da3098f4aa42f.tar.gz
gcc-a9690009903e4d8df766361db87da3098f4aa42f.tar.bz2
configure.tgt: Force initial-exec TLS model on Linux only.
* configure.tgt: Force initial-exec TLS model on Linux only. From-SVN: r119452
Diffstat (limited to 'libgomp/configure.tgt')
-rw-r--r--libgomp/configure.tgt7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index 7464d6a..89bae02 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.