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]

libgcc2.c & cross compilation


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.



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