cabal: library archive index and Mac OS X?

Simon Marlow simonmar at
Mon Mar 21 04:09:27 EST 2005

On 21 March 2005 07:55, Isaac Jones wrote:

> Wolfgang Thaller <wolfgang.thaller at> writes:
> (snip)
>> The index stores a time stamp; if the .a file's modification date is
>> newer, then ld will refuse to load from it until you re-run
>> ranlib. This commonly happens when you first build your .a files and
>> then touch their modification date while installing.
> Owch.  That's some odd behavior; any links to an explanation for why
> it works that way?  Does this happen on other arches?
> I don't see a cabal-side workaround... maybe GHC should run ranlib
> before linking?  Is there any drawback to that?  Are there any flags
> to ln to change this behavior?

Can't you run ranlib after install?  It wouldn't be right for GHC to run
ranlib, because the libraries might not be writable by the current user.


More information about the Libraries mailing list