This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Add an option to prevent a native gcc from searching /usr/libexec/gcc and /usr/lib/gcc


2009/8/5 Joseph S. Myers <joseph@codesourcery.com>:
> On Wed, 5 Aug 2009, Rafael Espindola wrote:

> I suggest it should not search these directories at all, unless it happens
> to be installed in /usr. ÂI.e., your configure option should be on by
> default without any alternative.
>
> /usr/lib and /usr/include, yes. ÂSystem directories known to contain
> system assemblers, linkers etc. on some systems (e.g. /usr/ccs/bin in
> MD_EXEC_PREFIX), yes. ÂDirectories mentioning "gcc", only from the
> installed prefix (relocated, so not necessarily the configured prefix).
> Directories from the configured prefix, only if that is where GCC is
> installed (not if relocated).

So, is the attached patch OK? :-)

2009-08-05  Rafael Avila de Espindola  <espindola@google.com>

	* gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
	(process_command): Don't search standard_exec_prefix_1 and
	standard_exec_prefix_2.

>
> --
> Joseph S. Myers
> joseph@codesourcery.com
>

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047

Attachment: hermetic.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]