__GLIBC__ #define

NightStrike nightstrike at gmail.com
Mon Feb 19 05:57:57 UTC 2007


On 2/18/07, Mike Frysinger <vapier at gentoo.org> wrote:
> On Sunday 18 February 2007, NightStrike wrote:
> > I downloaded the i386 root environment
> > (http://www.uclibc.org/downloads/root_fs_i386.ext2.bz2), and in
> > features.h, __GLIBC__ is set to 2.  This causes issues when compiling
> > g95 (g95.sourceforge.net), as they have things like the following:
> >
> > #ifdef __GLIBC__
> > #  include <mcheck.h>
> > #endif
> >
> > #ifdef __GLIBC__
> >   mcheck();
> > #endif
> >
> > This doesn't work.  Any suggestions?
>
> edit the source locally so it compiles
>
> this is a catch-22 ... we've deemed that too many projects rely on __GLIBC__
> to be defined in order to function properly in a linux host ... they assume
> that linux == glibc which screws us over
>
> might be useful to do another audit and figure out what core projects do this
> still
> -mike

Would it be worth it to suggest an alternative to the g95 project?  If
so, what would you suggest?



More information about the uClibc mailing list