[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21251] Support $SYSROOT in ld -L and INPUT command
From: |
ro at CeBiTec dot Uni-Bielefeld.DE |
Subject: |
[Bug ld/21251] Support $SYSROOT in ld -L and INPUT command |
Date: |
Wed, 31 May 2017 12:23:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21251
--- Comment #7 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #6 from Nick Clifton <nickc at redhat dot com> ---
Hi Nick,
>>> Hmm, I was going to say not a lot, but then I remembered that GCC uses it:
>>>
>>> https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html
>>
>> Maybe I'm blind, but where did you see that?
>
> Umm, do you mean "where in that web page do I see an '=' prefix being used
> to indicate that a sysroot should be used ?" Then, right at the start:
>
> -idirafter dir
>
> Add the directory dir to the list of directories to be searched
> for header files during preprocessing. If dir begins with ‘=’,
> then the ‘=’ is replaced by the sysroot prefix; see --sysroot and
> -isysroot.
ah, silly me, I just thought to look at -L and friends.
>> I'd have been surprised to find pure linker option descriptions repeated
>> in the GCC manual, so I didn't even think to look.
>
> Well to be honest it is talking about the c-preprocessor include path options
> rather than the linker search path, but I think that it establishes a
> principle
> which users will expect to be followed. IE if include paths can use a '='
> prefix
> then library search paths should be able to as well.
Indeed, everything else would be just confusing. This pretty much rules
out deprecating '=' in either gld or gcc, obviously.
I'll look into supporting $SYSROOT in gcc for symmetry, but that's about it.
Thanks for your patience ;-)
Rainer
--
You are receiving this mail because:
You are on the CC list for the bug.