<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7d51f6410c033f432c82bfa66543444a217e5ed1">https://github.com/macports/macports-ports/commit/7d51f6410c033f432c82bfa66543444a217e5ed1</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 7d51f64 metis: fix thread-local storage detection patch
</span>7d51f64 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7d51f6410c033f432c82bfa66543444a217e5ed1
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Oct 21 11:13:40 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> metis: fix thread-local storage detection patch
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/57043
</span>---
math/metis/files/gkl.patch | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/metis/files/gkl.patch b/math/metis/files/gkl.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 34c89b1..5ad78b9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/metis/files/gkl.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/metis/files/gkl.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,7 +27,7 @@ diff -r 919706ae3202 GKlib/GKlibSystem.cmake
</span> # Find OpenMP if it is requested.
if(OPENMP)
include(FindOpenMP)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -98,30 +96,24 @@ endif(HAVE_EXECINFO_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -98,30 +96,25 @@ endif(HAVE_EXECINFO_H)
</span> check_function_exists(getline HAVE_GETLINE)
if(HAVE_GETLINE)
set(GKlib_COPTIONS "${GKlib_COPTIONS} -DHAVE_GETLINE")
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,14 +36,15 @@ diff -r 919706ae3202 GKlib/GKlibSystem.cmake
</span> +set(GKlib_TLS "")
+# Custom check for TLS.
+foreach(tls_name "__thread" "__declspec(thread)")
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ check_c_source_runs("${tls_name} int x; int main() {x=0; return x;}" HAVE${tls_name})
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if(HAVE${tls_name})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE ")" "_" ${tls_name} tls_variable_name)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ check_c_source_runs("${tls_name} int x; int main() {x=0; return x;}" HAVE${tls_variable_name})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(HAVE${tls_variable_name})
</span> + set(GKlib_TLS "${tls_name}")
+ message(STATUS "checking for ${tls_name} thread-local storage - found")
+ break()
+ else()
+ message(STATUS "checking for ${tls_name} thread-local storage - not found")
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ endif(HAVE${tls_name})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif(HAVE${tls_variable_name})
</span> +endforeach()
-# Custom check for TLS.
</pre><pre style='margin:0'>
</pre>