summaryrefslogtreecommitdiff
path: root/libgomp/configure.tgt
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2019-12-03 11:13:38 +0000
committerSzabolcs Nagy <nsz@gcc.gnu.org>2019-12-03 11:13:38 +0000
commit004843655a9f2c9ef4de56d43184adf0ae5095c9 (patch)
tree0c150fe2aefd8c793ed44a51fbcb9c56691eed0e /libgomp/configure.tgt
parent89ee3a872fdf460402d1fc137e5cdce20f62bc8e (diff)
downloadgcc-004843655a9f2c9ef4de56d43184adf0ae5095c9.tar.gz
musl: Fix invalid tls model in libgomp and libitm PR91938
Musl does not support initial-exec tls in dynamically loaded shared libraries. libgomp/ChangeLog: 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com> PR libgomp/91938 * configure.tgt: Avoid IE tls on *-*-musl*. libitm/ChangeLog: 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com> PR libgomp/91938 * configure.tgt: Avoid IE tls on *-*-musl*. From-SVN: r278932
Diffstat (limited to 'libgomp/configure.tgt')
-rw-r--r--libgomp/configure.tgt3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index 06ee115ece9..4790a31e394 100644
--- a/libgomp/configure.tgt
+++ b/libgomp/configure.tgt
@@ -17,6 +17,9 @@ if test $gcc_cv_have_tls = yes ; then
*-*-k*bsd*-gnu*)
;;
+ *-*-musl*)
+ ;;
+
*-*-linux* | *-*-gnu*)
XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
;;