<div dir="ltr"><div>Hi!</div><div><br></div>I believe it's not a hard requirement that special variables can't be used, just that it's strongly discouraged in favour of configure options. I'm not sure if we support linker combinations other than the one the compiler comes with, the extent of my knowledge is that I think Oracle uses gold for gcc, but regardless you'd have to ask Magnus for that. But the issue is still that different linkers might need to be treated differently by the build system, and it might not yet be prepared to use linkers like mold instead of lld<div><br></div><div>best regards,</div><div>Julian</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2025 at 5:54 PM Bingwu Zhang <<a href="mailto:xtex@envs.net">xtex@envs.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
The patch I mentioned in last message will first try to resolve the full, <br>
absolute path of lld, and use --ld-path to pass the path to Clang. It should <br>
have the same effect as passing -fuse-ld=lld. If it failed to do so, it will <br>
fallback to use -fuse-ld=lld to let Clang pick up the proper linker.<br>
<br>
btw it seems that CC and CXX is picked by the build system [1]. Why don't we <br>
just pick up the variable?<br>
<br>
I will later change it to use a configure option. How about --with-linker-path?<br>
<br>
Thanks! :)<br>
<br>
[1] <a href="https://github.com/magicus/jdk/blob/" rel="noreferrer" target="_blank">https://github.com/magicus/jdk/blob/</a><br>
a62a870150cf199f16277b478af2f5d937255b3c/make/autoconf/toolchain.m4#L430<br>
<br>
-- <br>
Bingwu Zhang<br>
xtex @ Wed, 22 Jan 2025 09:45:35 +0000<br>
<br>
<br>
<br>
</blockquote></div>