Re: file.asm for PPC not Intel
Re: file.asm for PPC not Intel
- Subject: Re: file.asm for PPC not Intel
- From: Steve Baxter <email@hidden>
- Date: Wed, 1 Mar 2006 17:29:20 +0000
You can also get the linker to do the work for you. The problem is
that the .a file doesn't have any code in it for the Intel
architecture. You then get a link error.
If you #ifdef out the code in your app that references the code in
the .a file, the app will link. We've done this and it seems to work
fine. Of course, this is only easy if your calls to the .a file are
localised in one place (we were lucky that ours were).
Cheers,
Steve.
On 1 Mar 2006, at 17:08, Eric Albert wrote:
On Mar 1, 2006, at 8:43 AM, Steve Sisak wrote:
At 11:02 PM -0800 2/28/06, Eric Albert wrote:
On Feb 28, 2006, at 9:49 PM, Ken Turkowski wrote:
There's no way to do that in Xcode today. Instead, add
#if __ppc__
to the start of the file and the corresponding
#endif
to the end.
I have the same need but with a .a file for which I do not have
the source.
Needs to be included in PPC build but not Intel -- eventually
there will be a different .a for Intel.
That's a separate issue from Ken's because, as you noted, it's an
object file. For that, the best solution today is to use per-
architecture linker flags. Set OTHER_LDFLAGS_ppc to be '-
llibraryname' instead of adding the .a to your project.
Once you have the two .a's, you could use lipo to combine them into
one universal library and add that to your project as you would add
any other library.
Hope this helps,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40improvision.com
This email sent to email@hidden
Stephen Baxter
Software Development Manager
Improvision
email@hidden
+44-2476-692229
_______________________________________________
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