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]
Other format: [Raw text]

Re: Why -D_XOPEN_SOURCE=500 for Solaris?


On Sat, Feb 23, 2002 at 01:46:51AM -0300, Alexandre Oliva wrote:
> On Feb 23, 2002, Craig Rodrigues <rodrigc@attbi.com> wrote:
> 
> > In PR 4915, the submitter asked why on _XOPEN_SOURCE 
> > on Solaris is defined to 500 with g++ but not
> > with gcc.  
> 
> IIRC,

You do.

>       it's because libstdc++-v3 depends on some of the features of
> Solaris that are only declared/defined when this macro is defined.
> Same as -D_GNU_SOURCE on GNU/Linux.

Yep, this can be considered a long-standing wart, but I wouldn't call it
a bug.  Nobody has come up with a feasible alternative yet.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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