always respect threadlocal for variables with external linkage

Previously if you had, for example:

extern "c" threadlocal var errno: c_int;

This would turn errno into a normal variable for --single-threaded
builds. However for variables with external linkage, there is an ABI
to uphold.

This is needed to make errno work for DragonFly BSD. See #2381.
bd9c629c4cAndrew Kelley committed on 5/3/2019, 6:39:54 PMparent8cda4fd
1 file changedLine totals unavailable