Re: ranlib
Re: ranlib
- Subject: Re: ranlib
- From: Miklós Fazekas <email@hidden>
- Date: Tue, 28 Feb 2006 23:50:04 +0100
Steve Baxter <email@hidden> wrote:
When we check a .a library out of CVS and try and build the project
with Xcode, we get an error:
ld: table of contents for archive: ../../Openlab 2.x/3rd Party Stuff/
Hasp4/libhasposx.a is out of date; rerun ranlib(1) (can't load
from it)
I can run ranlib on this and it works OK - is there any way of
telling the linker to ignore the date mismatch and just get on with
it?
This is mentioned as a known bug in the ranlib man page. We work
around
it by copying the .a files and running ranlib on the copies; but we
have
a Makefile-based build system, so it is very easy to do there. In
Xcode, you probably have to add a shell script build phase that does
this; if you set the input and output files of the build phase
correctly, it should only kick in when a new version has come in from
CVS.
One thing you could try is to touch of the library to a distant
future date (say 2019/01/01) exec the runlib command.
Then reset the date to the original one.
This means that you don't have to exec the ranlib command unitl 2019.
[But it might not work..., i haven't tested yet...]
Regards,
Miklós _______________________________________________
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