http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52192
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-09 20:01:41 UTC --- (In reply to comment #0) > needs to link with -lthread for __tls_get_addr. -pthread knows about this > and the necessary contortions, and I do have a patch to try the test with > -pthread if it fails without, and adds it to LDFLAGS if that works. Will that be Solaris only? Because I'm seeing many failures on NetBSD due to undefined refs to __tls_get_addr, which I haven't investigated yet.