<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Thread-local storage not supported on compiler shipped with Xcode"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98603#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Thread-local storage not supported on compiler shipped with Xcode"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98603">bug 98603</a>
              from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
        <pre>It seems that we already use an alternative TLS mechanism in case __thread
isn't supported. Apparently the TLS support detection doesn't work correctly
with Xcode.

configure.ac uses the AX_TLS macro, which I believe is supposed to do the
detection. The macro is implemented in m4/ax_tls.m4, and it originates from
autoconf-archive. It seems that the upstream version of ax_tls.m4 has changed
since we imported it in PulseAudio, but the changes seem mostly cosmetic. In
any case, it's worth a try to replace m4/ax_tls.m4 with the current upstream
version[1].

The macro looks like it tries to compile a program with the __thread keyword,
and apparently that succeeds when you run configure? That suggests that the
compiler that the configure script uses is different from what Xcode uses. If
that's the case, you need to somehow fix that.

[1]
<a href="http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_tls.m4">http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_tls.m4</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>