• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Universal build of cranky open source lib with a configure script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal build of cranky open source lib with a configure script


  • Subject: Re: Universal build of cranky open source lib with a configure script
  • From: "Peter O'Gorman" <email@hidden>
  • Date: Fri, 26 Jan 2007 09:59:49 +0900


On Jan 26, 2007, at 9:12 AM, Bill Bumgarner wrote:

By specifying '-arch i386 -arch ppc', you are effectively telling the project to build for two different architectures where both should use all the configuration from whatever architecture the files happened to be compiled on!


The end result will be incorrect. The resulting problems may be obvious or, more likely, they might be incredibly subtle. Depending on how you are using the compiled product, you might get really lucky and have something that seems like it works.

While it is true that you may not end up with a working universal binary, it is not always the case. What to watch out for in particular:
AC_CHECK_SIZEOF
AC_C_BIGENDIAN
AC_WORDS_BIGENDIAN


It is also necessary to read the configure.ac and all the package .m4 files to ensure that no checks will break the fat build.

It is true that autoconf does not make building universal binaries easy, and that its testing of various system features means that it is very possible that a bad universal binary will be built, for some projects it does work, not just seems like it.

You are, however, correct that building multiple times and lipo gives a much better chance of a good build.

Peter
_______________________________________________
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


References: 
 >RE: Universal build of cranky open source lib with a configure script (From: "Syd Polk" <email@hidden>)
 >Re: Universal build of cranky open source lib with a configure script (From: Shamyl Zakariya <email@hidden>)
 >Re: Universal build of cranky open source lib with a configure script (From: John Daniel <email@hidden>)
 >Re: Universal build of cranky open source lib with a configure script (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Universal build of cranky open source lib with a configure script
  • Next by Date: Re: Universal build of cranky open source lib with a configure script
  • Previous by thread: Re: Universal build of cranky open source lib with a configure script
  • Next by thread: Re: Universal build of cranky open source lib with a configure script
  • Index(es):
    • Date
    • Thread