summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2006-05-24 20:52:14 +0000
committermrg <mrg@NetBSD.org>2006-05-24 20:52:14 +0000
commit7a25dd1dc990f19e4d4e66249de3acb728d7aebb (patch)
tree2990858437eb903932abeff3c29eb5f5c68c43a3 /gnu
parent16aa23f5c3db10ef2f0deb87372126a92136afe3 (diff)
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/dist/gcc4/gcc/gcc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/dist/gcc4/gcc/gcc.c b/gnu/dist/gcc4/gcc/gcc.c
index 1b44925ea89..b5788abb903 100644
--- a/gnu/dist/gcc4/gcc/gcc.c
+++ b/gnu/dist/gcc4/gcc/gcc.c
@@ -3258,6 +3258,7 @@ process_command (int argc, const char **argv)
/* FIXME: make_relative_prefix doesn't yet work for VMS. */
if (!gcc_exec_prefix)
{
+#ifndef NETBSD_NATIVE
gcc_exec_prefix = make_relative_prefix (argv[0], standard_bindir_prefix,
standard_exec_prefix);
gcc_libexec_prefix = make_relative_prefix (argv[0],
@@ -3265,6 +3266,10 @@ process_command (int argc, const char **argv)
standard_libexec_prefix);
if (gcc_exec_prefix)
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
gcc_libexec_prefix = make_relative_prefix (gcc_exec_prefix,