• 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: XCode ld and static lib.a files...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode ld and static lib.a files...


  • Subject: Re: XCode ld and static lib.a files...
  • From: Steve Checkoway <email@hidden>
  • Date: Thu, 29 Jun 2006 14:18:19 -0700


On Jun 29, 2006, at 1:57 PM, Jonas Maebe wrote:


On 29 jun 2006, at 22:45, Stefan Haller wrote:

The proper fix is to have a shell script phase that makes a copy of the
original .a and runs ranlib on the copy; then link your target against
the copy instead of the original. Set the script phase's input and
output files correctly, and the script will only run once, or whenever a
new version of the .a comes down from cvs.

That's a much better solution than the one I came up with.


In my experience, Xcode ignores the output files of shell script phases as far as feeding them back into the rules system is concerned (i.e., it only uses them to determine whether the script should run, but doesn't attempt to compile/link whatever you specify as output).

That's all it's for, unfortunately.


So my question is: how do you make Xcode link against the copy of the library you make in the shell script?

The same way you normally link against a static library.

--
Steve Checkoway



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: XCode ld and static lib.a files... (From: email@hidden (Stefan Haller))
 >Re: XCode ld and static lib.a files... (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Re: can I catch an EXC_BAD_ACCESS?
  • Next by Date: Re: can I catch an EXC_BAD_ACCESS?
  • Previous by thread: Re: XCode ld and static lib.a files...
  • Next by thread: values not passed?
  • Index(es):
    • Date
    • Thread