in the NETBSD_NATIVE case, don't set a default GCC_EXEC_PREFIX. just add
standard_libexec_prefix to the exec_prefixes for "GCC". this avoids a "-iprefix /usr/bin/../libexec/" being passed to cc1* and those searching in /usr/bin/../libexec/include{,bits/,g++} for headers.
This commit is contained in:
parent
16aa23f5c3
commit
7a25dd1dc9
5
gnu/dist/gcc4/gcc/gcc.c
vendored
5
gnu/dist/gcc4/gcc/gcc.c
vendored
@ -3258,6 +3258,7 @@ process_command (int argc, const char **argv)
|
|||||||
/* FIXME: make_relative_prefix doesn't yet work for VMS. */
|
/* FIXME: make_relative_prefix doesn't yet work for VMS. */
|
||||||
if (!gcc_exec_prefix)
|
if (!gcc_exec_prefix)
|
||||||
{
|
{
|
||||||
|
#ifndef NETBSD_NATIVE
|
||||||
gcc_exec_prefix = make_relative_prefix (argv[0], standard_bindir_prefix,
|
gcc_exec_prefix = make_relative_prefix (argv[0], standard_bindir_prefix,
|
||||||
standard_exec_prefix);
|
standard_exec_prefix);
|
||||||
gcc_libexec_prefix = make_relative_prefix (argv[0],
|
gcc_libexec_prefix = make_relative_prefix (argv[0],
|
||||||
@ -3265,6 +3266,10 @@ process_command (int argc, const char **argv)
|
|||||||
standard_libexec_prefix);
|
standard_libexec_prefix);
|
||||||
if (gcc_exec_prefix)
|
if (gcc_exec_prefix)
|
||||||
putenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL));
|
putenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL));
|
||||||
|
#else
|
||||||
|
add_prefix (&exec_prefixes, standard_libexec_prefix, "GCC",
|
||||||
|
PREFIX_PRIORITY_LAST, 0, 0);
|
||||||
|
#endif /* NETBSD_NATIVE */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
gcc_libexec_prefix = make_relative_prefix (gcc_exec_prefix,
|
gcc_libexec_prefix = make_relative_prefix (gcc_exec_prefix,
|
||||||
|
Loading…
Reference in New Issue
Block a user