Why ar doesn't call ranlib on Mac?

Peter O'Gorman peter at pogma.com
Wed Mar 4 07:18:31 PST 2009


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

Peter
-- 
Peter O'Gorman
http://pogma.com


More information about the macports-users mailing list