<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">From: Simon Michael <<a href="mailto:simon@joyful.com">simon@joyful.com</a>><br>
<br>
On 11/2/10 10:20 AM, John Lato wrote:<br>
> Since Apple seems disinclined to fix the system's libiconv, and macports projects refuse to use it, the only real<br>
> solution is to use either HP without macports or the macports GHC without HP. Personally I chose to use the HP and<br>
<br>
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<br>
your build flags for ghc --make, and put:<br>
<br>
extra-lib-dirs: /usr/lib<br>
extra-lib-dirs: /opt/local/lib<br>
<br>
in that order in ~/.cabal/config for cabal build.<br>
<br>
This is a very FAQ and needs to be documented somewhere more obvious, I wonder where. cabal-install and GHC release notes ?<br></blockquote><div><br></div><div>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.</div>
<div><br></div><div>As such, I consider this a pretty fragile "solution".</div><div><br></div><div>John</div></div>