This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/52192] GCC_CHECK_TLS doesn't detect native TLS on Solaris 8/9
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Feb 2012 13:59:12 +0000
- Subject: [Bug other/52192] GCC_CHECK_TLS doesn't detect native TLS on Solaris 8/9
- Auto-submitted: auto-generated
- References: <bug-52192-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52192
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2012-02-10 13:59:12 UTC ---
> --- 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.
No, the patch just tries the TLS test first without and then with
-pthread to check if it makes a difference.
Rainer