http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59321
--- Comment #10 from maemarcus at gmail dot com --- Right, I guess the reason of the difference is I'm configured with --program-prefix=kernelgen- --with-ld=$RPM_INSTALL_PREFIX/%{prefix}bin/kernelgen-ld --with-as=$RPM_INSTALL_PREFIX/%{prefix}bin/kernelgen-as In this case I expect -print-prog-name to add .gold/.bfd suffix to my --with-ld setting, rather than to .../x86_64-unknown-linux-gnu/bin/ld