This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libgcc2.c & cross compilation
- To: egcs at cygnus dot com
- Subject: libgcc2.c & cross compilation
- From: Elliot Lee <sopwith at redhat dot com>
- Date: Fri, 12 Jun 1998 17:28:10 -0400 (EDT)
egcs/gcc/libgcc2.c (latest CVS) has something along the lines of:
#ifndef inhibit_libc
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
#include <unistd.h>
#endif
#if defined(CROSS_COMPILE) && !defined(inhibit_libc)
#define inhibit_libc
#endif
/* various routines for libgcc */
Now, I've been told about the need for compiling with inhibit_libc for the
CROSS_COMPILE before you get libc built, but what I don't understand that
it is "sort of" using libc in the above example.
As far as I can see, either the "if CROSS_COMPILE, define inhibit_libc"
part needs to be removed totally, or it should be placed before the
#include's.
Comments?
-- Elliot
When I die, I want to die peacefully in my sleep like my grandfather...
...not yelling and screaming like the people in the back of the
plane he was flying.