Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Waldemar Brodkorb
Hi Thomas, Thomas Petazzoni wrote, > Hello, > > On Fri, 19 Aug 2016 21:46:44 +0200, Waldemar Brodkorb wrote: > > > Isn't it like with librt? Usually you use -lrt when using any > > advanced realtime functions from the C library. > > And any tutorial you find with your favourite internet search e

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Thomas Petazzoni
Hello, On Fri, 19 Aug 2016 16:14:31 -0400, Rich Felker wrote: > > Isn't it like with librt? Usually you use -lrt when using any > > advanced realtime functions from the C library. > > And any tutorial you find with your favourite internet search engine > > mentions to use -lpthread or -pthread wh

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Thomas Petazzoni
Hello, On Fri, 19 Aug 2016 21:46:44 +0200, Waldemar Brodkorb wrote: > Isn't it like with librt? Usually you use -lrt when using any > advanced realtime functions from the C library. > And any tutorial you find with your favourite internet search engine > mentions to use -lpthread or -pthread when

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Rich Felker
On Fri, Aug 19, 2016 at 09:46:44PM +0200, Waldemar Brodkorb wrote: > Hi Thomas, > Thomas Petazzoni wrote, > > > Hello, > > > > On Fri, 19 Aug 2016 14:03:45 -0400, Rich Felker wrote: > > > > > If they want to keep taking advantage of the nop-out hack for dynamic > > > linking glibc, a suitable so

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Waldemar Brodkorb
Hi Thomas, Thomas Petazzoni wrote, > Hello, > > On Fri, 19 Aug 2016 14:03:45 -0400, Rich Felker wrote: > > > If they want to keep taking advantage of the nop-out hack for dynamic > > linking glibc, a suitable solution would be a configure check > > something like: > > > > checking whether -larc

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Thomas Petazzoni
Hello, On Fri, 19 Aug 2016 14:03:45 -0400, Rich Felker wrote: > If they want to keep taking advantage of the nop-out hack for dynamic > linking glibc, a suitable solution would be a configure check > something like: > > checking whether -larchive needs -lpthread... yes That's a whole lot of wor

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Rich Felker
On Fri, Aug 19, 2016 at 07:53:20PM +0200, Thomas Petazzoni wrote: > Hello, > > [Adding Rich in Cc.] > > On Fri, 19 Aug 2016 19:34:43 +0200, Waldemar Brodkorb wrote: > > > > Do we have a list of the pthread functions that libc.so/libc.a is > > > supposed to provide? See the mail I just send about

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Thomas Petazzoni
Hello, [Adding Rich in Cc.] On Fri, 19 Aug 2016 19:34:43 +0200, Waldemar Brodkorb wrote: > > Do we have a list of the pthread functions that libc.so/libc.a is > > supposed to provide? See the mail I just send about the axel/libintl > > issue where libintl also uses pthread_rwlock_*() without bei

Re: [uclibc-ng-devel] pthread.h discrepancy between linuxthreads/NPTL

2016-08-19 Thread Waldemar Brodkorb
Hi Leonid, Leonid Lisovskiy wrote, > On 8/17/16, Waldemar Brodkorb wrote: > > I can do the regression testing if you cookup a patch? > > First of all, we must to ask topic starter Thomas Petazzoni to check > the patch after it will be cooked. > Yes, I can try to prepare the patch against linuxth

Re: [uclibc-ng-devel] pthread_mutex_*() functions, dynamic vs. static linking

2016-08-19 Thread Waldemar Brodkorb
Hi Thomas, Thomas Petazzoni wrote, > Hello, > > On Thu, 18 Aug 2016 22:33:35 +0200, Waldemar Brodkorb wrote: > > > What about following patch, which creates dummies for > > pthread_mutex_* functions in the !SHARED case: > > > > From 8d11aa1b9a983e0422dffa84eb1a7b71c616a096 Mon Sep 17 00:00:00 2

Re: [uclibc-ng-devel] pthread.h discrepancy between linuxthreads/NPTL

2016-08-19 Thread Leonid Lisovskiy
On 8/17/16, Waldemar Brodkorb wrote: > I can do the regression testing if you cookup a patch? First of all, we must to ask topic starter Thomas Petazzoni to check the patch after it will be cooked. Yes, I can try to prepare the patch against linuxthreads, but it will consume some time. Regards,