Why ar doesn't call ranlib on Mac?
Peter O'Gorman
peter at pogma.com
Wed Mar 4 07:54:08 PST 2009
Joshua Root wrote:
> Peter O'Gorman wrote:
>> Alexy Khrabrov wrote:
>>> In building various Linux things from source on Mac, I've run into the
>>> "archive has no table of contents" problem several times. The fix is
>>> invariably to go and stick ranlib after each ar.
>> What version of Mac OS X/Xcode are you using? ar, since Mac OS X 10.4
>> does ranlib the archive. I filed a bug at the time asking for the -S
>> flag to turn off this behavior to speed up creating an archive
>> incrementally.
>>
>> http://www.opensource.apple.com/darwinsource/10.5.6/cctools-667.3/ar/ar.c
>
> Apparently the issue crops up not only on Panther but also when building
> universal, see for example <http://trac.macports.org/ticket/13634>.
Yes, the default is to run `ranlib -q' unless ar got the 's' flag. This
seems reasonable to me, as operating on fat ranlibbed archives is
painful, as `ar x' for example, no longer works.
Peter
--
Peter O'Gorman
http://pogma.com
More information about the macports-users
mailing list