Re: Universal binaries and autoconf
Re: Universal binaries and autoconf
- Subject: Re: Universal binaries and autoconf
- From: "Peter O'Gorman" <email@hidden>
- Date: Thu, 09 Jun 2005 21:38:13 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jerry wrote:
| Hi,
|
| I'm just starting to look into creating a universal binary for our app,
| and I'm wondering how to build the third-party libraries we use which
| use the autoconf system. How can I get the configure scripts to
| generate the right stuff for the Intel binary, and how can I get XCode
| to build both Intel and PPC versions of these things? Any help
| gratefully received.
Well, it all depends, but assuming that configure is not doing anything tricky:
env CC="gcc -arch ppc -arch i386" CXX="g++ -arch ppc -arch i386" CXXCPP="g++
- -E" CPP="gcc -E" ./configure ; make
or
env CFLAGS=-arch ppc -arch i386" CXXFLAGS="-arch ppc -arch i386" ./configure
; make
If things don't work out you may have to build it thin, twice, and lipo the
results together.
If the thing is using gnu libtool to build shared libraries then it may or
may not work, depending on the version of gnu libtool included in the
package. Please let me know if you have any issues.
Thanks,
Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iQCVAwUBQqg4NbiDAg3OZTLPAQIQhwP/QQE97hOAG8Bl0V7TGzB6UqDb4S8t3XyF
7iICebodi4fyQG/7IJTmX1Vj59YGDDiWtGO0HBNaXO4S8Jss/ClDMhg4ZnlVRc1B
Vz1fW22CeGPAIHkVge8PTbWmTXq9FgfEUUIYy8m99yPwCR2uaGhhft+engW+I2AA
TCTzOtYM2XQ=
=lCKq
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden