On Tue, 4 May 2010, Ian Lance Taylor wrote:

> On GNU/Linux, you need to use -pthread or -D_REENTRANT at compilation
> time, and you need to use -pthread or -lpthread at link time.

_REENTRANT does essentially nothing (enables getlogin_r when the rest of 
POSIX.1:1996 is disabled).  See what I said in 
<http://sourceware.org/ml/libc-alpha/2005-09/msg00024.html> (the condition 
in question is now defined __USE_REENTRANT || defined __USE_POSIX199506).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to