Building libetpan as a fat library for PPC and x86

Matt Ronge <mronge-ePFkAnfr6dRWk0Htik3J/[email protected]> Fri, 24 Mar 2006 00:29:52 -0600
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
I'm working on a Mac OS X framework that wraps around libetpan and for 
my framework I'm going to need distribute it as a fat or universal 
binary with both x86 and PPC code. So I've got make building object 
files that are fat by passing the arguments to configure as shown below.

./configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc 
-arch i386" 
LDFLAGS="-syslibroot,/usr/include/Developer/SDKs/MacOSX10.4u.sdk -arch 
ppc -arch i386"

However, at the end of the build the I get some problems with ar:

mkdir .libs/liblow-level.lax/libimap.a
(cd .libs/liblow-level.lax/libimap.a && ar x 
/Users/mronge/Projects/Kiwi/MailCore/libetpan/src/low-level/imap/.libs/libimap.a)
ar: 
/Users/mronge/Projects/Kiwi/MailCore/libetpan/src/low-level/imap/.libs/libimap.a 
is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: 
/Users/mronge/Projects/Kiwi/MailCore/libetpan/src/low-level/imap/.libs/libimap.a: 
Inappropriate file type or format
make[2]: *** [liblow-level.la] Error 1
make[1]: *** [all-recursive] Error 1

I tried setting things up to use libtool instead of ar, but I am unsure 
what I should do.
AR="libtool"

Any ideas? Has anyone built this as a fat binary?
-- 
Matt Ronge

AIM: monkeybreadr
http://www.theronge.com


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642