[ANNOUNCE] libpthread-stubs 0.2
jcristau at debian.org
Wed Sep 23 04:20:21 PDT 2009
On Wed, Sep 23, 2009 at 13:13:04 +0200, Arkadiusz Miskiewicz wrote:
> On Wednesday 23 of September 2009, Julien Danjou wrote:
> > Samuel Thibault (1):
> > Provide sem_* functions
> configure:11001: x86_64-pld-linux-gcc -o conftest -O2 -fno-strict-aliasing -
> fwrapv -march=x86-64 -gdwarf-2 -g2 -D_FORTIFY_SOURCE=2 -Wl,--as-needed -Wl,-
> z,relro -Wl,-z,combreloc conftest.c >&5
> /home/users/arekm/tmp/ccuskjrG.o: In function `main':
> /home/users/arekm/rpm/BUILD/libpthread-stubs-0.2/conftest.c:69: undefined
> reference to `sem_init'
> but sem_init is in libpthread.so library which configure.ac test doesn't link
> This causes libpthread-stubs.so.* to be produced on Linux when it's
> Also even if this is fixed resulting *.pc doesn't contain "-pthread" flag for
> cppflags/ldflags where it should IMO.
No, not linking with -lpthread is the whole point of the stubs.
libpthread-stubs contains weak versions of these symbols that libraries
can use without adding the whole threading overhead for single threaded
More information about the xorg