<div dir="auto"><div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 22 Jan 2026, 08:45 Jonathan Wakely, <<a href="mailto:jwakely.gcc@gmail.com">jwakely.gcc@gmail.com</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"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 22 Jan 2026, 06:09 Peter Gutmann via cfarm-users, <<a href="mailto:cfarm-users@lists.tetaneutral.net" target="_blank" rel="noreferrer">cfarm-users@lists.tetaneutral.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">mirabilos via cfarm-users <<a href="mailto:cfarm-users@lists.tetaneutral.net" rel="noreferrer noreferrer" target="_blank">cfarm-users@lists.tetaneutral.net</a>> writes:<br>
<br>
>It is but of course the -Wl,… flags are linker-specific and you must use<br>
>Solaris’ syntax on Solaris, when not compiled for GNU ld.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Right, -Wl,xxx works fine, passing xxx directly to the linker. If the linker is GNU ld then you need to use flags that GNU ld understands, and if the linker is Solaris ld then you need to use flags that Solaris ld understands.</div><div dir="auto"><br></div><div dir="auto">There's nothing "inappropriate" about this setup.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Mixing different sets of tools leads to weird inconsistencies in the build<br>
process though because having (say) gcc present implies GNU ld, </blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">No it doesn't, that's a bad assumption.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">except that in<br>
this case it's not, it's Sun's ld.</blockquote></div></div><div dir="auto"><br></div><div dir="auto">That's the recommended way to configure GCC on Solaris:</div><div dir="auto"><a href="https://gcc.gnu.org/install/specific.html#x-x-solaris2" target="_blank" rel="noreferrer">https://gcc.gnu.org/install/specific.html#x-x-solaris2</a></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> Or at least it's someone's ld, there's no<br>
easy way to tell from a build script. It's also Sun's make, which means<br>
having to feature-test each component you're using to try and figure out which<br>
options work with it.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Isn't that the point of testing on different operating systems? If you want everything to be GNU binutils and GNU Make, don't use other operating systems. </div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Or just use 'gmake' instead of 'make'. I think 'gld' might work on Solaris to give you the GNU linker but I can't check right now.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br><br>
</blockquote></div></div></div>
</blockquote></div></div></div>