pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: libxslt needs -D_REENTRANT
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
Home |
Main Index |
Thread Index |
Old Index