thread_local storage on 10.6.8 (and earlier) with clang-7.0

Ken Cunningham ken.cunningham.webuse at gmail.com
Mon Dec 10 06:30:12 UTC 2018


On 2018-12-09, at 9:50 PM, Jeremy Sequoia wrote:
> 
> 
> Yuck.  Sounds like typical bootstrapping hell :/. Maybe make +emutls a variant on libcxxabi.

Thanks! - in fact I did exactly that. Also sorted out building libcxx with newer compilers.

I presently have libcxx 7.0.0 with emulated-tls running on this 10.6.8 system very well now.


A: Enabling emulated TLS in clang:

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-codegen-itanium-cxa-atexit.diff



B: adding the emulated TLS support to libcxxabi and bumping to 7.0.0:

https://github.com/kencu/myports/tree/master/lang/libcxx



It's nearly ready for a PR once I clean up the logic in libcxx Portfile a touch more.

Best,

Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20181209/25e5e7e8/attachment.html>


More information about the macports-dev mailing list