<div dir="auto">> <span style="color:rgb(0,0,0)">It seems to me that this should be done the same way we do it on Linux:</span></div><span style="border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">if we are on an x86_64 host and --enable-win64 is not specified, we add</span><br style="font-family:-apple-system,HelveticaNeue"><span style="border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">-m32 and set host_cpu=i386. Passing --host is not required in this</span><br style="font-family:-apple-system,HelveticaNeue"><span style="border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">configuration.</span><div dir="auto"><font style="border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)"><br></font></div><div dir="auto"><font style="border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">If the compile is being done via an Intel Mac that’s not required, when compiling via an Apple Silicon Mac just launching the session via Rosetta2 will allow you to skip setting -m32 & host_cpu.<br></font><div dir="auto"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 21, 2021 at 3:35 PM Alexandre Julliard <<a href="mailto:julliard@winehq.org">julliard@winehq.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Brendan Shanks <<a href="mailto:bshanks@codeweavers.com" target="_blank">bshanks@codeweavers.com</a>> writes:<br>
<br>
> With the toolchain working, building i386 with it is now a cross-compile.<br>
> Apple does not prefix the commands with the host triplet though<br>
> (i.e. 'i386-apple-darwin'), which Wine seems to expect for cross-compiling.<br>
><br>
> Specifically, configure adds "-b <host triplet>" to TARGETFLAGS, causing<br>
> winebuild to search for commands like ld and nm prefixed with that host<br>
> triplet, which fails.<br>
><br>
> This is a patch which only sets that TARGETFLAGS when the host triplet<br>
> appears in $CC. I'm open to a different approach to fixing this though.<br>
<br>
It seems to me that this should be done the same way we do it on Linux:<br>
if we are on an x86_64 host and --enable-win64 is not specified, we add<br>
-m32 and set host_cpu=i386. Passing --host is not required in this<br>
configuration.<br>
<br>
-- <br>
Alexandre Julliard<br>
<a href="mailto:julliard@winehq.org" target="_blank">julliard@winehq.org</a><br>
<br>
</blockquote></div></div></div>