aboutsummaryrefslogtreecommitdiff
path: root/libgomp/configure.tgt
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-02 20:01:34 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-02 20:01:34 +0000
commit656db5a099f8489a0bce89afecb7c76192540d03 (patch)
tree85a17410893e1753dc4c7855f5bde02236963cfa /libgomp/configure.tgt
parent074377fda7148d34c7a4a0fba356e705c4709930 (diff)
* 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
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 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.