Andrew Kelley e4d595a8ba
fix thread local variables for non- position independent code
This fixes comes thanks to Rich Felker from the musl libc project,
who gave me this crucial information:

"to satisfy the abi, your init code has to write the same value
to that memory location as the value passed to the [arch_prctl]
syscall"

This commit also changes the rules for when to build statically
by default. When building objects and static libraries, position
independent code is disabled if no libraries will be dynamically
linked and the target does not require position independent code.

closes #2063
2019-04-04 01:08:26 -04:00
..
2018-07-22 00:04:24 -04:00
2019-03-25 16:04:25 -04:00
2018-05-29 04:23:38 -04:00
2019-03-25 16:04:25 -04:00
2018-12-26 15:25:54 -05:00
2019-03-02 16:46:04 -05:00