diff options
author | obrien <obrien@FreeBSD.org> | 1999-12-29 14:42:46 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-12-29 14:42:46 +0000 |
commit | c34ec3d7dad898b9f7f570f7d28f331bd6218335 (patch) | |
tree | bbeb99d426a7e898e4781b306869d0d5e1119946 /contrib/gcc/gcc.c | |
parent | c5dd6ef219371f7521eaa5ac57c56e2383736c0c (diff) | |
download | FreeBSD-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.c | 6 |
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: |