[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shared libraries and _REENTRANT



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. However, I can't seem to find an answer for the
other question:

> Also, when a library ships a .pc file, should it include the 
> option in its CPPFLAGS?
> 

-- 

  Felipe Sateler



Reply to: