Re: shared libraries and _REENTRANT

2007-06-26 Thread Pierre Habouzit
On Sun, Jun 24, 2007 at 01:50:51AM -0700, Russ Allbery wrote: > Felipe Sateler <[EMAIL PROTECTED]> 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

Re: shared libraries and _REENTRANT

2007-06-25 Thread Felipe Sateler
Michael Kerrisk wrote: > Yes, as far as I've ever known (but my knowledge of requirements on early > Linux is thin), "cc -pthread" is sufficient, since it is equivalent to > "cc -lpthread -D_REENTRANT" But the library uses Boost::Thread. I guess -pthread is not implied (although libpthread should

Re: shared libraries and _REENTRANT

2007-06-25 Thread Michael Kerrisk
Justin Pryzby wrote: > On Fri, Jun 22, 2007 at 02:11:25PM -0400, 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 w

Re: shared libraries and _REENTRANT

2007-06-24 Thread Russ Allbery
Felipe Sateler <[EMAIL PROTECTED]> 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. >

Re: shared libraries and _REENTRANT

2007-06-23 Thread Justin Pryzby
On Fri, Jun 22, 2007 at 02:11:25PM -0400, 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. >

Re: shared libraries and _REENTRANT

2007-06-23 Thread Felipe Sateler
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

shared libraries and _REENTRANT

2007-06-22 Thread Felipe Sateler
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