<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">dear all, <div class=""><br class=""></div><div class=""><br class=""></div><div class="">one of the PRs I just merged (<a href="https://github.com/macports/macports-ports/pull/5848" class="">https://github.com/macports/macports-ports/pull/5848</a>) fails on OS X 10.8, 10.9, and 10.10 with the error "<font face="Helvetica Neue" class="">error: thread-local storage is not supported for the current target” (with AppleClang version 5.1, 6.0, and 7.0, respectively). On 10.7 it works again because </font><span style="font-family: "Helvetica Neue";" class="">/opt/local/bin/clang++-mp-9.0 is used as compiler, I assume because of the "</span>compiler.cxx_standard 2011” statement. </div><div class=""><span style="font-family: "Helvetica Neue";" class=""><br class=""></span></div><div class=""><font face="Helvetica Neue" class="">Looking at other Portfiles there seem to be two approaches to resolve this:</font></div><div class=""><font face="Helvetica Neue" class="">1. if </font><span style="font-family: "Helvetica Neue";" class="">${os.major} < 11, disable </span><font face="Helvetica Neue" class="">“thread_local” which is doable for the port in question, but it will then also be disabled on 10.7 where is seems to work now</font></div><div class=""><font face="Helvetica Neue" class="">2. blacklists compilers using "</font><span style="font-family: "Helvetica Neue";" class="">compiler.blacklist-append {clang < 700}</span><font face="Helvetica Neue" class="">”</font></div><div class=""><span style="font-family: "Helvetica Neue";" class=""><br class=""></span></div><div class=""><font face="Helvetica Neue" class="">Is there an opinion (or even consensus) about what is the preferred way of doing this? </font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class="">Thanks,</font></div><div class=""><font face="Helvetica Neue" class="">Renee</font></div><div class="">
<br class=""></div></body></html>