This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: G++ defining _GNU_SOURCE


>>>>> "David" == David Edelsohn <dje@watson.ibm.com> writes:

    David> 	This is not an AIX problem.  This is a problem for any
    David> non-glibc2 target.

You mean it's not *only* an AIX problem.

Well, this is even a problem for a GNU/Linux target, too, really, in a
way.

This is a fundamentally missing feature in the library -- the V3
library forces you to pick a certain system library interface, instead
of affording you the usual flexibility.

Until it gets added, all we can do is try to mitigate the damage.

Fortunately, it looks like Phil will come up with something.

Phil, I ould stick with linux.h.  Just add _GNU_SOURCE to add targets
that include linux.h and define their own C++ predefines so that we
can be sure that they get it too.  That will allow us to remove it
from lang-specs.h.  It you feel like doing gnu.h too, that's fine --
but in practice very few people are using the Hurd.  GLIBC2 is used on
GNU/Linux and not very many other places, AFAIK.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]