summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/gcc.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-12-29 14:42:46 +0000
committerobrien <obrien@FreeBSD.org>1999-12-29 14:42:46 +0000
commitc34ec3d7dad898b9f7f570f7d28f331bd6218335 (patch)
treebbeb99d426a7e898e4781b306869d0d5e1119946 /contrib/gcc/gcc.c
parentc5dd6ef219371f7521eaa5ac57c56e2383736c0c (diff)
downloadFreeBSD-src-c34ec3d7dad898b9f7f570f7d28f331bd6218335.zip
FreeBSD-src-c34ec3d7dad898b9f7f570f7d28f331bd6218335.tar.gz
Allow the specification of a prefix for gcc to find all the various bits.
If one wishes to anchor the compiler toolchain tree somewhere other than /, all one needs to do is set "TOOLS_PREFIX" to a different rooting. Submitted by: marcel (in a different format and reworked by me)
Diffstat (limited to 'contrib/gcc/gcc.c')
-rw-r--r--contrib/gcc/gcc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/gcc/gcc.c b/contrib/gcc/gcc.c
index 9c54245..1e45505 100644
--- a/contrib/gcc/gcc.c
+++ b/contrib/gcc/gcc.c
@@ -2666,7 +2666,7 @@ process_command (argc, argv)
}
GET_ENV_PATH_LIST (temp, "LIBRARY_PATH");
- if (temp && *cross_compile == '0')
+ if (temp)
{
const char *startp, *endp;
char *nstore = (char *) alloca (strlen (temp) + 3);
@@ -3083,11 +3083,11 @@ process_command (argc, argv)
{
case OBJFMT_AOUT:
n_switches++; /* add implied -maout */
- add_prefix (&exec_prefixes, "/usr/libexec/aout/", "BINUTILS",
+ add_prefix (&exec_prefixes, PREFIX"/libexec/aout/", "BINUTILS",
0, 0, NULL_PTR);
break;
case OBJFMT_ELF:
- add_prefix (&exec_prefixes, "/usr/libexec/elf/", "BINUTILS",
+ add_prefix (&exec_prefixes, PREFIX"/libexec/elf/", "BINUTILS",
0, 0, NULL_PTR);
break;
case OBJFMT_UNKNOWN:
OpenPOWER on IntegriCloud