<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2018-12-09, at 9:50 PM, Jeremy Sequoia wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000"><br></font>Yuck. Sounds like typical bootstrapping hell :/. Maybe make +emutls a variant on libcxxabi.<br></div></blockquote></div><br><div>Thanks! - in fact I did exactly that. Also sorted out building libcxx with newer compilers.</div><div><br></div><div>I presently have libcxx 7.0.0 with emulated-tls running on this 10.6.8 system very well now.</div><div><br></div><div><br></div><div><div>A: Enabling emulated TLS in clang:</div></div><div><br></div><div><a href="https://github.com/kencu/SnowLeopardPorts/blob/master/lang/llvm-5.0/files/9998-patch-tools-clang-lib-basic-targets-force-tls.diff">https://github.com/kencu/SnowLeopardPorts/blob/master/lang/llvm-5.0/files/9998-patch-tools-clang-lib-basic-targets-force-tls.diff</a></div><div><a href="https://github.com/kencu/SnowLeopardPorts/blob/master/lang/llvm-5.0/files/9998-patch-tools-clang-lib-codegen-itanium-cxa-atexit.diff">https://github.com/kencu/SnowLeopardPorts/blob/master/lang/llvm-5.0/files/9998-patch-tools-clang-lib-codegen-itanium-cxa-atexit.diff</a></div><div><br></div><div><br></div><div><br></div><div>B: adding the emulated TLS support to libcxxabi and bumping to 7.0.0:</div><div><br></div><div><a href="https://github.com/kencu/myports/tree/master/lang/libcxx">https://github.com/kencu/myports/tree/master/lang/libcxx</a></div><div><br></div><div><br></div><div><br></div><div><div><div>It's nearly ready for a PR once I clean up the logic in libcxx Portfile a touch more.</div></div></div><div><br></div><div>Best,</div><div><br></div><div>Ken</div></body></html>