summaryrefslogtreecommitdiff
path: root/devel/pmdk/files/patch-src_jemalloc_configure.ac
blob: e41a83a9b83eb4fbe02e01e97baa52cd268d2005 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/jemalloc/configure.ac.orig	2019-10-29 20:24:56 UTC
+++ src/jemalloc/configure.ac
@@ -414,13 +414,13 @@ SAVED_CFLAGS="${CFLAGS}"
 JE_CFLAGS_APPEND([-Werror])
 JE_COMPILABLE([tls_model attribute], [],
               [static __thread int
-               __attribute__((tls_model("initial-exec"))) foo;
+               __attribute__((tls_model("local-dynamic"))) foo;
                foo = 0;],
               [je_cv_tls_model])
 CFLAGS="${SAVED_CFLAGS}"
 if test "x${je_cv_tls_model}" = "xyes" ; then
   AC_DEFINE([JEMALLOC_TLS_MODEL],
-            [__attribute__((tls_model("initial-exec")))])
+            [__attribute__((tls_model("local-dynamic")))])
 else
   AC_DEFINE([JEMALLOC_TLS_MODEL], [ ])
 fi