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: 2.95,2 bug; can not create cross compiler


> 
> > 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
 


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