From a370115d7de879fd7f3b657bf8a56de313688a8f Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 5 Mar 2002 00:17:24 +0000 Subject: [PATCH] Allow for better control over the GCC front-end when building a cross compiler. * Undo the diking out of cross compiler logic from gcc.c rev 1.16. * Add the `CROSS_STARTFILE_PREFIX' knob. * Add our own definition of `STANDARD_INCLUDE_DIR'. This should have been included in freebsd-native.h rev 1.5. --- gnu/usr.bin/cc/cc_tools/freebsd-native.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h index 40654cd9df2c..cc9d906e4d70 100644 --- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h +++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h @@ -19,6 +19,8 @@ #define GCC_INCLUDE_DIR PREFIX"/include" #ifdef CROSS_COMPILE #define CROSS_INCLUDE_DIR PREFIX"/include" +#else +#define STANDARD_INCLUDE_DIR PREFIX"/include" #endif /* Under FreeBSD, the normal location of the compiler back ends is the @@ -42,6 +44,9 @@ /usr/lib directory. */ #define STANDARD_STARTFILE_PREFIX PREFIX"/lib/" +#ifdef CROSS_COMPILE +#define CROSS_STARTFILE_PREFIX PREFIX"/lib/" +#endif #undef MD_STARTFILE_PREFIX /* We don't need one for now. */ /* For the native system compiler, we actually build libgcc in a profiled