From 95b6324d690e9e9a72689d82ae959a68b42fc13a Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 5 Mar 2002 00:17:24 +0000 Subject: 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. --- contrib/gcc/gcc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'contrib/gcc') 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 -- cgit v1.1