This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 2.95,2 bug; can not create cross compiler
- To: mrs at windriver dot com (Mike Stump)
- Subject: Re: 2.95,2 bug; can not create cross compiler
- From: hjl at lucon dot org (H.J. Lu)
- Date: Wed, 17 Nov 1999 18:24:31 -0800 (PST)
- Cc: gcc-bugs at gcc dot gnu dot org, gcc at gcc dot gnu dot org,schweitz at nortelnetworks dot com
>
> > From: "Eric Schweitz" <schweitz@nortelnetworks.com>
> > To: gcc@gcc.gnu.org, gcc-bugs@gcc.gnu.org
> > Date: Wed, 17 Nov 1999 17:13:40 -0500 (EST)
> > Reply-To: "Eric Schweitz" <schweitz@nortelnetworks.com>
>
> > +#if defined(CROSS_COMPILE) && !defined(inhibit_libc)
> > +#define inhibit_libc
> > +#endif
>
This is what I have been using. I use
# make CFLAGS="-O2 -g -pipe -Dno_inhibit_libc"
to build the cross compiler.
H.J.
---
Thu Aug 12 10:18:30 1999 H.J. Lu (hjl@gnu.org)
* gcc/libgcc2.c (inhibit_libc): Don't define if no_inhibit_libc
is defined.
--- ../../import/gcc-2.95/egcs/gcc/libgcc2.c Sun Jun 13 10:55:04 1999
+++ gcc/libgcc2.c Wed Aug 11 17:13:19 1999
@@ -60,7 +60,7 @@ Boston, MA 02111-1307, USA. */
/* In a cross-compilation situation, default to inhibiting compilation
of routines that use libc. */
-#if defined(CROSS_COMPILE) && !defined(inhibit_libc)
+#if defined(CROSS_COMPILE) && !defined(inhibit_libc) && !defined(no_inhibit_libc)
#define inhibit_libc
#endif