Hi,
The short summary that I use for .a files is:
Build on PPC
Build on Intel
On either run
lipo -create lib/libpq.a ../ppc/lib/libpq.a ../intel/lib/libpq.a
Before a
file libpq.a
shows
libpq.a: current ar archive
After lipo it shows:
libpq.a: Mach-O fat file with 2 architectures
libpq.a (for architecture ppc): current ar archive
libpq.a (for architecture i386): current ar archive random library
There is a nice Apple tech note on this
http://developer.apple.com/technotes/tn2005/tn2137.html
that talks about Universal Binaries.
It's possible that you might be able to do this all in one go since
the Apple compiler can support generating both intel and ppc output in
the same fat file. But, if you can't, then the above technique works
just fine.
cheers
bruce
Ted Petrosky writes:> I am trying to create the libpq.a as a universal binary (both ppc and > intel macs). Does anyone
haveany information on this process?> > Thanks,> > Ted> > ---------------------------(end of
broadcast)--------------------------->TIP 2: Don't 'kill -9' the postmaster
--
If brute force doesn't work, you're not using enough of it.
Bruce O'Neel phone: +41 22 379 21 57
INTEGRAL Science Data Centre +41 22 379 21 00 (switchb.)
Chemin d'Ecogia 16 fax: +41 22 379 21 35
CH-1290 VERSOIX e-mail: Bruce.Oneel@obs.unige.ch
Switzerland WWW: http://isdc.unige.ch/