Changing Path to Linker in Clang

Dear All,

Is there a way to get a version of Clang which I am compiling to use a specific path to ld?

I'm working on some enhancements to libLTO and don't want to replace the one in /usr/lib. I think if I can get Clang to use a different ld in a different directory, then I can get it to use a different libLTO as well.

Thanks in advance,

-- John T.

Dear All,

Is there a way to get a version of Clang which I am compiling to use a
specific path to ld?

I believe the only way to do this is to actually change the hardcoded search path in the source. Things could have changed since I last looked though.

-Tanya