On Wednesday, 1 November 2017 at 18:06:29 UTC, Joakim wrote:
If you're having problems with the emulated TLS I put together for Android, it is most likely because I didn't document well what needs to be done when linking for Android. Specifically, there are three rules that _must_ be followed:

1. You must use the ld.bfd linker, ld.gold won't do.
2. You must have a D main function, even for a shared library (which can be put next to android_main, if you're using the default Android wrapper from my D android library). 3. The ELF object with the D main function must be passed to the linker first.

If you look at my examples on the wiki, you'll see that they all follow these rules:

https://wiki.dlang.org/Build_D_for_Android

I should have called these rules out separately though, like I'm doing here, a documentation oversight.

I've added a new section to the Android wiki page with this info, and some more relevant details:

https://wiki.dlang.org/Build_D_for_Android#Changes_for_Android

Reply via email to