• 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
ppc-specific .a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ppc-specific .a file


  • Subject: ppc-specific .a file
  • From: Chuck Soper <email@hidden>
  • Date: Mon, 8 May 2006 12:39:51 -0700

Hello,

I need to link a ppc-specific .a file in my Universal application project. I have searched the archives and tried to find the appropriate documentation. Previously, I was able to get this to work fine with my Universal Cocoa plug-in project by doing this:
- Add myAsmFile.a to project:
- Add setting: OTHER_LDFLAGS_ppc
with value: -fno-common -lmyAsmFile $(OTHER_LDFLAGS)
- In the Info panel for 'myAsmFile.a', uncheck target memberships.
(If the file had the target memberships checked, then the Intel version got a linker error.)


This morning I attempted to take the same steps to an application. The compile and link completed without errors or warnings, but the myAsmFile.a code isn't available at runtime (an object alloc returns nil). When I re-check the target memberships, the Intel version gives gives a linker warning (not an error) and the myAsmFile.a code is now available at runtime (for the ppc version).

I think that this solution works, but I was expecting the same behavior for both the plug-in and the application.

Is there something I should be doing differently?

Where can I find the documentation for OTHER_LDFLAGS_ppc options? It's mentioned under "Architecture-Specific Options" in Universal Binary Programming
Guidelines, Second Edition, but I can't find what the possible values are.


Both the Cocoa plug-in and the application use the 10.4 SDK, but the application's deployment target is 10.3.

Thanks,
Chuck
_______________________________________________
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


  • Prev by Date: Re: Sorting files in all-in-one view?
  • Next by Date: Problem upgrading from X-Code 1.5 to 2.2.1
  • Previous by thread: Re: Attach to process not working
  • Next by thread: Problem upgrading from X-Code 1.5 to 2.2.1
  • Index(es):
    • Date
    • Thread