diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-05 00:17:24 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-05 00:17:24 +0000 |
commit | 95b6324d690e9e9a72689d82ae959a68b42fc13a (patch) | |
tree | 1257b9caa5dd726c459d896d1e617abab0d0c569 /contrib | |
parent | 0e8e6deea1980ea5bc4de3c8e5861fce4e3a5525 (diff) | |
download | FreeBSD-src-95b6324d690e9e9a72689d82ae959a68b42fc13a.zip FreeBSD-src-95b6324d690e9e9a72689d82ae959a68b42fc13a.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.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcc/gcc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/gcc/gcc.c b/contrib/gcc/gcc.c index feadd5d..e78cf2f 100644 --- a/contrib/gcc/gcc.c +++ b/contrib/gcc/gcc.c @@ -3268,7 +3268,7 @@ process_command (argc, argv) } GET_ENV_PATH_LIST (temp, LIBRARY_PATH_ENV); - if (temp) + if (temp && *cross_compile == '0') { const char *startp, *endp; char *nstore = (char *) alloca (strlen (temp) + 3); @@ -6067,6 +6067,10 @@ main (argc, argv) concat (gcc_exec_prefix, machine_suffix, standard_startfile_prefix, NULL), "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL); +#ifdef CROSS_STARTFILE_PREFIX + add_prefix (&startfile_prefixes, CROSS_STARTFILE_PREFIX, "BINUTILS", + 0, 0, NULL_PTR); +#endif } /* Process any user specified specs in the order given on the command |