<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 09-01-15 à 13:54, TjL a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Is it possible (and, if so, how) to compile programs like the GNU Core<br>Utils or GNU Sed on an Intel Mac and end up with a "Universal" binary<br>which will work on both PowerPC (i.e. my Powerbook) and an Intel (my<br>MacBook)?</div></blockquote><br></div><div>The apple branch of GCC has an easy -arch option for this, which can be repeated.</div><div><br></div><div>For instance:</div><div><br></div><div>gcc -o program -arch i386 -arch ppc program.c</div><div><br></div><div>Will generate a universal binary. Using -arch i386 alone will make an intel one, and -arch ppc, a PowerPC one.</div><div><br></div><div>Maybe this could be hacked in CFLAGS somewhere?</div><div><br></div><div>--</div><div><span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 10px; ">Alexandre Gauthier,<br>Network Analyst / Analyste Réseau<br>Services Informatiques</span></div></body></html>