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 > to. > > This causes libpthread-stubs.so.* to be produced on Linux when it's > unnecessary. > > 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 apps. Cheers, Julien _______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
