Subject: Re: libxslt needs -D_REENTRANT
To: None <pkgsrc-users@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: pkgsrc-users
Date: 01/26/2007 20:28:27
Blair Sadewitz wrote:
> I actually was going to do (a) at first, but I don't know
> non-BSD-based (I ran away from linux screaming years ago and besides
> that just some IRIX 6) platforms too well and didn't know if I would
> break anything on some other platform.
The cleanest solution is to compile each single (well the critical ones at
least) function in a separate file and do the necessary #include and #define
dance there. It also helps with namespace pollution especially if you include
non-standard headers. On Linux (glibc) the easier way is usually to define
_GNU_SOURCE which is the one-size-fits-all short-cut. IRIX is problematic
because it wants _XOPEN_SOURCE for certain features but you lose others
features in return. It seems those engineers have taken TANSTAAFL to heart.
This isn't something you'd want to fix in pkgsrc but rather ask upstream for
patches.
--
Christian