• 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: Autoconf, universal binaries, and dependencies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoconf, universal binaries, and dependencies


  • Subject: Re: Autoconf, universal binaries, and dependencies
  • From: Peter O'Gorman <email@hidden>
  • Date: Tue, 12 Jun 2007 10:47:58 -0700


On Jun 11, 2007, at 8:41 PM, Nick Zitzmann wrote:

Short question: How do I get a universal binary out of an autoconf project that uses dependencies when I don't have a computer with the desired CPU architecture?

Long question: I'm trying to build a project that uses autoconf to make its makefile. I've tried the instructions at <http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html >, but they don't work when the autoconf project uses dependencies, since using multiple -arch flags with dependency flags causes GCC to fail with an error saying it doesn't support that. And I can't just compile for the single problematic architecture either, because I don't have a computer that can run that architecture, so autoconf's compiler sanity check fails. Am I going to have to ask someone else to build a binary for the architecture for me, or what else can I do in this situation?

I really don't understand why that project must use dependency tracking. You can cross-compile, but most projects don't actually support that (though many pretend to). If I were you, I might configure for the build architecture, edit the config.h and makefiles is appropriate, then do 'make CC="gcc -arch <other_arch>" CXX="g++ - arch <other_arch>"'.


Peter
--
Peter O'Gorman
http://pogma.com


_______________________________________________ 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
  • Follow-Ups:
    • [SOLVED] Re: Autoconf, universal binaries, and dependencies
      • From: Nick Zitzmann <email@hidden>
References: 
 >Autoconf, universal binaries, and dependencies (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: how to confirm a variable's value is reset?
  • Next by Date: Re: Novice Questions
  • Previous by thread: Autoconf, universal binaries, and dependencies
  • Next by thread: [SOLVED] Re: Autoconf, universal binaries, and dependencies
  • Index(es):
    • Date
    • Thread