[Bug driver/59321] -fuse-ld does not have effect on -print-prog-name

maemarcus at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 29 23:04:00 GMT 2013


--- Comment #8 from maemarcus at gmail dot com ---
Dear H.J. Lu,

You patch works for me, thanks a lot! I noticed however, that with -fuse-ld ld
from the different location is used for me:

$ kernelgen-gcc -print-prog-name=ld
$ kernelgen-gcc -fuse-ld=bfd -print-prog-name=ld
$ kernelgen-gcc -fuse-ld=gold -print-prog-name=ld

I think the patch should first check if newname concatted with suffix exists,
or somehow else deal with possibly prefixed-ld names.

More information about the Gcc-bugs mailing list