[argyllcms] Universal binary for mac OS X
- From: Stefan Heinsen <sheinsen@xxxxxxxxxxxxxxxxx>
- To: argyllcms@xxxxxxxxxxxxx
- Date: Mon, 03 Jul 2006 20:51:31 +0200
Ive been trying to hack the build-system to produce a universal
binary (both intel and ppc-code in one executable) on os x.
As far as i can tell the build-system uses ar to create some
libraries (librspl.a for example) and this failes, because
"The library archive utility, ar(1), cannot work with libraries
containing code for more than one architecture (or single-architecture
libraries generated with lipo(1)) after ranlib has added a table of
contents to them. Thus, if you need to add additional object files to a
library, you must keep a separate copy without a TOC."
(from
http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html
)
Im not very familiar with neither autotools nor jam, but i can set up
a xcode project if you like.
Actually its quite easy to build a universal binary, just set the CFLAGS
to CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch
i386" and LDFLAGS to the same, the only problem for me is to get arround
ar.
Regards,
Stefan.
- Follow-Ups:
- [argyllcms] Re: Universal binary for mac OS X
- From: Graeme Gill
Other related posts:
- » [argyllcms] Universal binary for mac OS X
- » [argyllcms] Re: Universal binary for mac OS X
- [argyllcms] Re: Universal binary for mac OS X
- From: Graeme Gill