tech-userlevel archive

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

Re: suenv



On Tue, Oct 23, 2012 at 06:08:37PM +0200, Martin Husemann wrote:
> On Tue, Oct 23, 2012 at 04:31:52PM +0200, Emmanuel Dreyfus wrote:
> > Opinions?
> 
> Either PAM modules should not be allowed to use shared libraries that
> use pthreads, or we need to make sure every application using PAM is
> linked against libpthread.

Wasn't there a recent change to ld so that NEEDED entries are only
added if the shared library is needed to resolve symbols?

Which makes the naive addition of -lpthread useless.

I also dug into some linux libc.so and libpthread.so.
AFAICT the mutex and condvar functions are in libc.
There are somes stubs in libpthread that do a jump indirect,
not sure what that is based on though.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index