Compiling to multiple architectures (fat/universal binary)

1 view
Skip to first unread message

AlBlue

unread,
Apr 15, 2009, 7:16:03 AM4/15/09
to ObjectivEClipse Development Group
I tried adding an -arch flag to the GCC compiler for ObjectiveClipse,
but if you put more than one you get an error message:

gcc-4.0: -E, -S, -save-temps and -M options are not allowed with
multiple -arch flags

However, whilst investigating compiling DHCPD for MacOSX recently, I
figured out a way of resolving that issue (which I've documented on my
blog for future reference/so I remember)

http://alblue.blogspot.com/2009/04/compiling-isc-dhcpd-as-universal-binary.html

I'll have to do some more digging to find out how the compiler is
being invoked on Mac OS X (it currently passes the -M option to
generate a makefile rule; but I think we can ignore that when we
actually compile)

Alex
Reply all
Reply to author
Forward
0 new messages