[PATCH 1/6] Config.in: enable TLS config option only for nptl

Carmelo Amoroso carmelo73 at gmail.com
Thu Sep 24 07:20:54 UTC 2009


Austin Foxley wrote:
> On 09/23/2009 09:07 AM, Mike Frysinger wrote:
>> On Wednesday 23 September 2009 10:53:23 Austin Foxley wrote:
>>> On 09/23/2009 07:40 AM, Carmelo Amoroso wrote:
>>>>> diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
>>>>> index efa90d7..3d1a929 100644
>>>>> --- a/extra/Configs/Config.in
>>>>> +++ b/extra/Configs/Config.in
>>>>> @@ -403,7 +403,7 @@ config UCLIBC_HAS_THREADS
>>>>>
>>>>>  config UCLIBC_HAS_TLS
>>>>>  	bool "Thread-Local Storage"
>>>>> -	depends on UCLIBC_HAS_THREADS && !LINUXTHREADS_OLD
>>>>> +	depends on UCLIBC_HAS_THREADS_NATIVE
>>>>>  	default n
>>>>>  	help
>>>>>  	  If you want to enable TLS support then answer Y.
>>>> Hum... TLS should work for NPTL and Linuxthreads too, so I think
>>>> this patch is wrong.
>>> It didn't build for me, but I will look at it again.
>> TLS in linuxthreads.old will require a bit of work, so simply disabling it for 
>> now is fine i think.  TLS support in linuxthreads doesnt really gain you that 
>> much anyways.
>> -mike
> 
> I took another look at it (tls with linuxthreads), and it is quite a ways away
> from even compiling at least on i386. Carmelo, did you have it working at some
> point? On what arch?
> 
> -Austin
> 
Hi Austin,
I use only NPTL; my reply was simply based on what I remember and I've understood
from the mailing list, that is TLS should be working with linuxthreads too
(not sure, this has been mainly done by Peter Mazinger in the past).
Anyway I don't know the current status, I never took care of it, and I don't know
what will happen in the future with linuxthreads.
I'd keep the code unchanged.

carmelo



More information about the uClibc mailing list