[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: weak _pthread_mutex_lock()



Hi,

On Mon, Jul 16, 2007 at 09:31:04PM +0200, Samuel Thibault wrote:
> Is there still a reason for _pthread_mutex_lock() to be weak? This
> poses problem when linking statically, because __mutex_lock_solid()
> then doesn't pull _pthread_mutex_lock() (since it already has a weak
> reference). The result is that on a stdio contention for instance,
> flockfile()'s __mutex_lock_solid() jumps to 0...

If I remember correctly, we put this in to fix some quite old
build/linking issues in libstdc++.  It is likely that this patch is
obsolete now and I removed it from the package CVS.  We should check
whether gcc/libstdc++ still builds fine with this, though.


Michael



Reply to: