PATCH: Correct path relocation logic
Mark Mitchell
mark@codesourcery.com
Mon Mar 12 16:53:00 GMT 2007
Daniel Jacobowitz wrote:
> On Sun, Mar 11, 2007 at 05:40:35PM -0700, Mark Mitchell wrote:
>> This patch corrects the patch relocation performed in c-incpath.c.
>> The purpose of this logic is to adjust header file search paths when
>> the compiler installation is relocated. However, this logic was only
>> checking for paths inside $prefix/lib/gcc, when, really, it should be
>> checking for paths inside $prefix.
>
> Just checking, but this isn't going to move /usr/include, is it?
No more than before; I didn't change the test for what paths to move,
but rather just where to move them.
And, as one would expect, /usr/include is an add_sysroot path, so this
conditional will not fire. This conditional only applies to non-sysroot
paths within the configure-time prefix.
>> +/* The configre-time prefix, i.e., the value supplied as the argument
>
> configure.
Thanks. It appears I hadn't managed to check in the patch, so I shall
fix that before committing.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list