
3 Jun
2007
3 Jun
'07
6:48 p.m.
1. It seems entries on the extra-lib-dirs line in cabal (GHC 6.6) are not passed to the linker with -rpath. Instead, you have to do that in ld-options with "-Wl,-rpath -Wl,mylibdir". The trouble is this is not portable, as the Darwin (Mac OS X) linker doesn't accept the -rpath option and (I think) simply uses all -L directories for the runtime path or some clever thing. I recommend that either extra-lib-dirs be passed as -rpath (as appropriate for the platform), or a new field such as "extra-rpath-dirs" be added. 2. Cabal doesn't recognise "framework-dirs" as a field name, even though it shows up in "ghc-pkg describe". -- Ashley Yakeley