link problem under macosx

Simon Michael simon at joyful.com
Tue Nov 2 18:03:34 EDT 2010


On 11/2/10 10:20 AM, John Lato wrote:
> Since Apple seems disinclined to fix the system's libiconv, and macports projects refuse to use it, the only real
> solution is to use either HP without macports or the macports GHC without HP.  Personally I chose to use the HP and

Not so, as mentioned you just need to make sure /usr/lib is in the link path before /opt/local/lib. Add -L/usr/lib to 
your build flags for ghc --make, and put:

extra-lib-dirs: /usr/lib
extra-lib-dirs: /opt/local/lib

in that order in ~/.cabal/config for cabal build.

This is a very FAQ and needs to be documented somewhere more obvious, I wonder where. cabal-install and GHC release notes ?



More information about the Glasgow-haskell-users mailing list