There is a very long-standing wishlist bug against lintian (#47776) asking
that lintian check to be sure shared libraries are built with
-D_REENTRANT.  Policy 10.2 indeed says:

    You must specify the gcc option -D_REENTRANT when building a library
    (either static or shared) to make the library compatible with
    LinuxThreads.

However, that LinuxThreads bit has smelled possibly obsolete for a while,
and the lintian bug report indicates that this check is mostly about errno
vs. __errno_location, a transition that I believe was fully completed many
moons ago.

Looking over the headers on my system, the only thing that appears to be
controlled by -D_REENTRANT at this point is whether getlogin_r is
prototyped by <unistd.h>, something that may well be important for some
programs but which would show up as traditional compiler warnings.

Is this flag still important when building shared libraries?  Perhaps on
architectures other than x86?  Or is this historical cruft from long-ago
completed transitions that should now go away?

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to