[xml/sgml-pkgs] Bug#551079: libexpat1: links with -lpthread for no reason
daniel.leidert at wgdd.de
Sun Oct 25 15:18:07 UTC 2009
Am Samstag, den 24.10.2009, 22:51 -0500 schrieb Ardo van Rangelrooij:
> Daniel Leidert wrote:
> > Hi Ardo,
> > Can you coment on this please? You've added the flags for expat in 2004,
> > but maybe you remember for what?
> > Regards, Daniel
> > Am Donnerstag, den 15.10.2009, 15:05 +0200 schrieb Julien Cristau:
> >> < ickle> jcristau: libfontconfig pulls in pthreads [debian]
> >> * ickle starts recompiling the whole damn stack to lose the pthread
> >> dependency, gah!
> >> < pq> what's wrong with pthread? Or for distribution?
> >> < ickle> just the excessive performance cost when running single-threaded
> >> < ickle> jcristau: it appears that the debian package of expat links
> >> against libpthread.so, but not when compiled from source...
> >> < ickle> yay for uncommented changes: expat (1.95.8-1) unstable;
> >> urgency=low
> >> < ickle> * debian/rules: added '-pthread -D_REENTRANT' to 'CFLAGS'
> >> < ickle> but no explanation :(
> >> Any chance you could remove this unnecessary -pthread from debian/rules?
> >> Or is there a hidden non-obvious reason to keep it there (not that I can
> >> see what that could possibly be)?
> Hello Daniel,
> This was added per request from Raphael Bossek:
> > Please consider to extend the compilerflags with -pthread -D_REENTRANT.
> > This is required for my python-4suite package and all other
> > multi-threaded applications.
But why? Expat doesn't use pthread nor _REENTRANT. IMO this switch just
results in a useless linkage to libpthreads for the expat library in
Debian. Raphael, can you please comment on this?
More information about the debian-xml-sgml-pkgs