Linux, libtool, and -lpthread

Cantor, Scott cantor.2 at
Wed Feb 1 17:15:42 UTC 2012

> This appears to still be unresolved in Libtool 2.4.2.  This is normally
> masked because Xerces-C forces inclusion of -lpthread in its *.la file,
> but Debian has dropped the *.la file for Xerces-C (because it adds
> spurious dependencies on the ICU libraries), so we now see this problem
> for xmltooling (and I'm expecting to see it for others).

I suspect it's formally creatig incorrect builds anyway, since -pthread is not specifically only to address the library option, but also thread safe versions of various system calls and such.

> I'm working around it for the Debian build by forcing addition of
> -lpthread to the linker flags.

I'll probably have to do the same somehow for all gcc builds.

-- Scott

More information about the Pkg-shibboleth-devel mailing list