
24 Sep
2010
24 Sep
'10
2:07 a.m.
On 09/23/2010 10:41 PM, Mitar wrote:
The other would be probably to implement/document configuration (extra-lib-dir?) that Cabal (or GHC in general) first searches system's library path (those against which GHC was compiled in Haskell Platform) and if lib is not there goes for MacPorts or Fink's library paths?
Exactly. So, if you're in this situation, just make sure - whenever you use GHC, pass it the -L/usr/lib flag - put --extra-lib-dirs=/usr/lib in ~/.cabal/config Now Apple's libs will be preferred when linking haskell executables, solving the libiconv errors while still allowing macports libs to be used.