site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcmuHRMBD8LMrIUaS+qOIXlZRL7FCwAGdFaw Thread-topic: How to find the architecture for a mach-o file? On Wed, 25 Mar 2009 20:59:18 +0100 Jonas Maebe wrote:
On 25 Mar 2009, at 19:41, Karan, Cem (Civ, ARL/CISD) wrote:
Well, the installed version of the dot tool has 4 architectures:
ppc i386 64-bit ppc64 64-bit x86_64
The installed expat library comes back as i386. So dyld should be fine, right?
If a command line app has both 32 and 64 bit versions available and is executed on a 64 bit machine, then the 64 bit version will be executed. Use
arch -i386 dot ...
to force the OS to start the 32 bit version. I also wonder why your expat library is missing three quarters of the archs that Apple ships.
The expat thing is almost certainly not Apple's fault; I got desperate when dot didn't work so I recompiled and installed expat myself. If the build system doesn't properly build all the architectures, then (of course) my newly installed libraries won't have all architectures. I have not checked to see if libexpat does have proper makefiles, but I can do that later on (more pressing issues now) If someone has an OS X 10.5.6 distribution that doesn't have their own libexpat installed over Apple's and is able to double check this, can you please post to the list if Apple IS shipping a library that only has one architecture? Thanks, Cem Karan _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com