Compiling fat binaries

Brian Hawkins brianhks1 at gmail.com
Wed Jan 31 05:11:10 PST 2007


It is even easier then I thought.  I found this in the gcc man page.
Basically you can add '-arch i386 -arch ppc' to both your compile and link
commands and gcc will create fat object files and the linker will create a
fat binary for you.  Way too easy.  It builds just as fast as doing only one
architecture.

Brian

On 1/26/07, Andrew Merenbach <andrew.merenbach at ucla.edu> wrote:
>
> Hi, all.
>
> I want to compile a command-line application that uses makefiles as a
> ppc *and* i386 binary.  Is this possible with the use of makefiles?
> Will I have to tweak the makefiles after I run the "configure"
> script?  If so, how?
>
> Cheers,
>         Andrew Merenbach
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>


More information about the MacOSX-dev mailing list