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.
This commit is contained in:
David E. O'Brien 2002-03-05 00:17:24 +00:00
parent 3174c81c9c
commit fcd0ff585f

View file

@ -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