From: Simon Michael <simon@joyful.com>
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 ?
As I mentioned in another reply, this worked for me until I tried to link to a macports lib (I think some regex lib) that actually used the macports libiconv (a lot of them don't even if they pull in the dependency). Then I was really stuck because I had dependencies on two different libiconv's, and neither one would link properly. As such, I consider this a pretty fragile "solution". John
Am 03.11.2010 11:59, schrieb John Lato:
From: Simon Michael <simon@joyful.com <mailto:simon@joyful.com>>
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 ?
As I mentioned in another reply, this worked for me until I tried to link to a macports lib (I think some regex lib) that actually used the macports libiconv (a lot of them don't even if they pull in the dependency). Then I was really stuck because I had dependencies on two different libiconv's, and neither one would link properly.
As such, I consider this a pretty fragile "solution".
Right, therefore I've reopened http://hackage.haskell.org/trac/ghc/ticket/4068 Christian
John
participants (2)
-
Christian Maeder -
John Lato