The Makefiles, Mac OS X and ranlib

Wolfgang Thaller wolfgang.thaller at gmx.net
Tue Sep 21 20:44:35 EDT 2004


Hi All,

As I've already remarked, I hate Makefiles and autoconf, so this is a 
CALL FOR VOLUNTEERS to fix one small Makefile problem on Mac OS X...

If you aren't allergic to GHC's build system, read on. No special Mac 
OS knowledge required.

Mac OS X's linker requires that ranlib is run on all static libraries 
*after* they have been installed. Copying them to a different place 
makes ld think the table of contents is out of date.
GHC's makefiles don't do that, so after compiling and installing GHC, I 
have to run
ranlib /usr/local/lib/ghc-6.whatever/*.a
before I can link apps using GHC.

Can somebody make GHC's Makefiles invoke ranlib after installing a 
library on Mac OS X?

Cheers,

Wolfgang



More information about the Cvs-ghc mailing list