diff options
author | obrien <obrien@FreeBSD.org> | 2002-02-20 19:41:54 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-02-20 19:41:54 +0000 |
commit | a323589d857ae303fee4c53a49c2f64655900be7 (patch) | |
tree | 962b9d549451f9274e9fd365d27fdd3fba4dca45 /gnu | |
parent | 686682669861d611920a5a32f8ed50d06cffc06e (diff) | |
download | FreeBSD-src-a323589d857ae303fee4c53a49c2f64655900be7.zip FreeBSD-src-a323589d857ae303fee4c53a49c2f64655900be7.tar.gz |
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.
* Minimize a little bit more, things we dike out in the FREEBSD_NATIVE case.
Submitted by: ru & obrien
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/freebsd-native.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h index 85a66c2..ff6296b 100644 --- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h +++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h @@ -16,6 +16,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 @@ -35,6 +37,9 @@ #undef MD_STARTFILE_PREFIX /* We don't need one for now. */ #define STANDARD_STARTFILE_PREFIX PREFIX"/lib/" +#ifdef CROSS_COMPILE +#define CROSS_STARTFILE_PREFIX PREFIX"/lib/" +#endif /* FreeBSD is 4.4BSD derived */ #define bsd4_4 |