Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / gcc / libgomp-dont-force-initial-exec.patch
blobafd1f7456d328eb92afcefc79d517da8c220a69c
1 From 01c433f4788441c0963005b9d3fad5b2865e6651 Mon Sep 17 00:00:00 2001
2 From: Will Dietz <w@wdtz.org>
3 Date: Mon, 24 Sep 2018 19:57:50 -0500
4 Subject: [PATCH] libgomp/configure.tgt: don't force initial-exec tls-model
6 ---
7 libgomp/configure.tgt | 17 -----------------
8 1 file changed, 17 deletions(-)
10 diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
11 index 74d95a570c7..b608c55f0c1 100644
12 --- a/libgomp/configure.tgt
13 +++ b/libgomp/configure.tgt
14 @@ -10,23 +10,6 @@
15 # XCFLAGS Add extra compile flags to use.
16 # XLDFLAGS Add extra link flags to use.
18 -# Optimize TLS usage by avoiding the overhead of dynamic allocation.
19 -if test $gcc_cv_have_tls = yes ; then
20 - case "${target}" in
22 - *-*-k*bsd*-gnu*)
23 - ;;
25 - *-*-linux* | *-*-gnu*)
26 - XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
27 - ;;
29 - *-*-rtems*)
30 - XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
31 - ;;
32 - esac
33 -fi
35 # Since we require POSIX threads, assume a POSIX system by default.
36 config_path="posix"
38 --
39 2.19.0