Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] Is the 10.4u SDK distributed for the Intel Mac and the PPC Mac different?




On Jun 27, 2008, at 10:31 PM, JongAm Park wrote:

I tried compiling the postgreSQL library. As I desribed in my previous post, on Intel Mac, there are some problems like "_fnctl $UNIX2003 can't be found.". I tried investigating the library file using the nm. But they are reference like _fnctl without $UNIX2003.

So, I tried compiling universal library, especially the i386 part, on my iMac 17" PPC (Sunflower model.)
I found some interesting things.
An intel binary built on an Intel Mac is 420KB, while the same intel binary built on a PPC Mac is 392KB.


The build command is the same on both.

export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -mmacosx-version-min=10.4"
export LDFLAGS="-arch i386"
sudo ./configure --prefix=/opt/local --disable-dependency-tracking.


I couldn't provide it with -arch ppc -arch i386 at the same time. Then erros will be thrown while compilation.
So, I tried buiding the separately and will combine them using lipo.


Is there any difference between the same 10.4u SDK? (Actually I think I heard it before from somewhere... )

The SDK is identical between PPC and Intel machines. Without analyzing what the 28Kb difference actually entails between the two binaries it would be hard to say what's going on. It's more likely that the difference is in debug symbols rather than generated code (try comparing stripped binaries rather than unstripped).


Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >[Q] Is the 10.4u SDK distributed for the Intel Mac and the PPC Mac different? (From: JongAm Park <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.