Re: shared libraries and _REENTRANT
Felipe Sateler <fsateler@gmail.com> writes:
> Felipe Sateler wrote:
>> Policy 10.2 says we must compile shared libraries with -D_REENTRANT:
>>> You must specify the gcc option -D_REENTRANT when building a library
>>> (either static or shared) to make the library compatible with
>>> LinuxThreads.
>> However, LinuxThreads has been superseeded by NPTL. Is this still
>> necessary?
> Some googling shows that _REENTRANT is necessary for POSIX threading, so
> it should be still needed.
This just came up at DebConf, and our belief is that it's only needed to
get prototypes for a few functions that aren't prototyped otherwise. That
would imply that if your software is building without undeclared function
warnings, you don't need it.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: