WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
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.
> Now I wonder, why don't we replace /usr/bin/ar with a wrapper calling
> the ar and then ranlib if it's an ar c? No more stupid ranlib
> peppering then!
Make a patch which adds a 's' to the ar arguments and ask upstream to
apply it. Running 'ar s' is equivalent to ranlib.
Common usage is:
ar rcs libfoo.a $LIBS
> And what's wrong with Macs anyways? Why do we have to do it where
> Linux folks are happy without it?
Mac OS X is based on BSD, not GNU/Linux. Welcome to the UNIX world!