[cfe-dev] Linker selection

Kito Cheng kito at 0xlab.org
Sat Dec 15 08:53:43 PST 2012


On Sat, Dec 15, 2012 at 7:46 PM, Jacob Carlborg <doob at me.com> wrote:
> On 2012-12-15 09:35, Chandler Carruth wrote:
>
>> The final question in my mind is whether "--link-with" is the right name
>> for this flag. I would be interested if anyone has particular shades of
>> paint they prefer for this bikeshed. I would also be interested if
>> someone familiar with the GCC community could see if they want to
>> support this logic as well, and if so coordinate the flag name and
>> semantics with them so we end up with a compatible option in both GCC
>> and Clang.
>
>
> What about "--linker"? It's seems fairly obvious to me if it's not already
> occupied. Or could that be confused with passing flags to the linker.

The gcc use -fuse-ld option, however the patch are under review.

http://gcc.gnu.org/ml/gcc-patches/2012-11/msg02389.html

gcc invoke `ld` if the linker not specify and use `ld.xxx` (`ld.bfd`
or `ld.gold`) if given -fuse-ld.



More information about the cfe-dev mailing list