Commit c7370b83 by Joseph Myers Committed by Joseph Myers

gcc.c (process_command): Add program name to GCC_EXEC_PREFIX value before…

gcc.c (process_command): Add program name to GCC_EXEC_PREFIX value before passing to make_relative_prefix.

	* gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
	value before passing to make_relative_prefix.

From-SVN: r113345
parent bb6a0ee1
2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
* gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
value before passing to make_relative_prefix.
2006-04-28 Alan Modra <amodra@bigpond.net.au>
PR middle-end/27260
......
......@@ -3376,9 +3376,17 @@ process_command (int argc, const char **argv)
putenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL));
}
else
gcc_libexec_prefix = make_relative_prefix (gcc_exec_prefix,
standard_exec_prefix,
standard_libexec_prefix);
{
/* make_relative_prefix requires a program name, but
GCC_EXEC_PREFIX is typically a directory name with a trailing
/ (which is ignored by make_relative_prefix), so append a
program name. */
char *tmp_prefix = concat (gcc_exec_prefix, "gcc", NULL);
gcc_libexec_prefix = make_relative_prefix (tmp_prefix,
standard_exec_prefix,
standard_libexec_prefix);
free (tmp_prefix);
}
#else
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment