Re: [PATCH] Fix detection of thread support with uClibc in libgcc

2014-10-11 Thread Kwok Cheung Yeung
On 11/10/2014 5:56 PM, Andrew Pinski wrote: On Sat, Oct 11, 2014 at 9:42 AM, Kwok Cheung Yeung wrote: __gthread_active_p() in libgcc checks for thread support by looking for the presence of a symbol from libpthread. With glibc, it looks for __pthread_key_create. However, it determines that gli

Re: [PATCH] Fix detection of thread support with uClibc in libgcc

2014-10-11 Thread Andrew Pinski
On Sat, Oct 11, 2014 at 9:42 AM, Kwok Cheung Yeung wrote: > __gthread_active_p() in libgcc checks for thread support by looking for the > presence of a symbol from libpthread. With glibc, it looks for > __pthread_key_create. However, it determines that glibc is being used by > checking for a defi

[PATCH] Fix detection of thread support with uClibc in libgcc

2014-10-11 Thread Kwok Cheung Yeung
__gthread_active_p() in libgcc checks for thread support by looking for the presence of a symbol from libpthread. With glibc, it looks for __pthread_key_create. However, it determines that glibc is being used by checking for a definition of __GLIBC__, which is also defined by uClibc (in include