• 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: email@hidden (Stefan Haller)
  • Date: Thu, 29 Jun 2006 22:45:54 +0200
  • Organization: Ableton

Steve Checkoway <email@hidden> wrote:

> I have a shell script phase that runs ranlib every time. It's
> annoying and sometimes people check the libraries back in to cvs
> because they've been modified which means you get conflicts the next
> time you try to update, but at least you don't have to manually run
> ranlib.

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.  There's no danger of
accidentally checking in a modified .a file this way.

Works perfectly for me, though the amount of work to set it up can be
significant if you have lots of .a files.


--
Stefan Haller
Ableton
http://www.ableton.com/
 _______________________________________________
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

  • Follow-Ups:
    • Re: XCode ld and static lib.a files...
      • From: Jonas Maebe <email@hidden>
References: 
 >Re: XCode ld and static lib.a files... (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: XCode ld and static lib.a files...
  • Next by Date: Re: XCode ld and static lib.a files...
  • Previous by thread: Re: XCode ld and static lib.a files...
  • Next by thread: Re: XCode ld and static lib.a files...
  • Index(es):
    • Date
    • Thread