This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-D_REENTRANT on Solaris
- To: egcs at cygnus dot com
- Subject: -D_REENTRANT on Solaris
- From: Ovidiu Predescu <ovidiu at slip dot net>
- Date: Wed, 21 Oct 1998 22:22:47 -0700
Hi,
When compiling code for Solaris that uses threads we have to define the
_REENTRANT macro so that the thread-safe system functions are used instead. We
have to do this at least for the Objective-C runtime library, but this may also
be the case for libgcc2.
Is it OK to add this to the GTHREAD_FLAGS variable in gcc/Makefile when egcs is
configured to use threads on Solaris?
Ovidiu