bindist for Intel MacOS X 10.4 (Tiger) with static libs

Christian Maeder Christian.Maeder at
Wed Jan 9 06:47:29 EST 2008

Christian Maeder wrote:
> Hi,
> I've succeeded in building a binary distribution that uses static
> libraries for gmp and readline. libreadline.a, libncurses.a and libgmp.a
> with corresponding header files are included. (For license issues ask
> someone else.) Linking is done using the flag -search_paths_first.
> Frameworks or dylibs for gmp or readline are no longer required and are
> not used when linking binaries.
> Other static libraries are compatible with those from
> (in fact HSreadline- was created this way)

Be warned.
While static linking seems to work, dynamic linking using ghci does not:

ghci -package readline
GHCi, version 6.8.2:  :? for help
Loading package base ... linking ... done.
Loading package old-locale- ... linking ... done.
Loading package old-time- ... linking ... done.
Loading package filepath- ... linking ... done.
Loading package directory- ... linking ... done.
Loading package unix- ... linking ... done.
Loading package process- ... linking ... done.
unknown symbol `_rl_insert_completions'
Loading package readline- ... linking ... ghc-6.8.2: unable to
load package `readline-'

Has someone an idea how to fix this?

> Cheers Christian
> P.S. ranlib during installation is actually not needed on Intel Macs
> (only for PPC)

More information about the Glasgow-haskell-users mailing list