This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Leveraging gcc in a cross-compilation environment
"Philip A. Prindeville" <philipp_subx@redfish-solutions.com> writes:
> On 01/12/2010 02:04 PM, Ian Lance Taylor wrote:
>> "Philip A. Prindeville" <philipp_subx@redfish-solutions.com> writes:
>>
>>> I have to say, the overloading of '=' *plus* the fact that some arguments use '=' (like --sysroot=) while others don't (-isystem xxx) is confusing.
>>
>> Yes.
>>
>>> Ok, what about how 'ld' interprets --sysroot? If I have "ld --sysroot /xyzzy -L/a/b/c" will it look in /xyzzy/a/b/c?
>>
>> No. ld uses --sysroot for very few things, really just to set the
>> default library search path. Generally the compiler passes the
>> library paths to search as -L options.
>>
>> Ian
>
> Any chance of filing an enhancement request that -L =path expand to -L <sysroot>/path?
Actually, now that I look at the linker code, I think that already
works.
Ian