ger:
> It looks like I am going to have to hack the shell script that calls
> ghc, because it needs to set LD_LIBRARY_PATH so that the executables
> can find libreadline. Would it be possible to have an option to
> ./configure that set a library path to be used by these scripts?
I have to do a similar thing on OpenBSD, to use an external libgmp
residing in /usr/local/lib. But no real hacking is required!
When compiling GHC, before you start, add something like:
, "-L", "/usr/local/lib"
to somewhere down around line 137 of ghc/rts/package.conf.in. This way
GHC will always add the -L/usr/local/lib flag when compiling .hs files
and will find whatever library you need.
-- Don
Here is a patch I use:
--- ghc/rts/package.conf.in.orig Sat May 17 10:11:27 2003
+++ ghc/rts/package.conf.in Wed Aug 6 15:12:45 2003
@@ -133,6 +133,7 @@
, "-u", "GHCziWeak_runFinalizzerBatch_closure"
, "-u", "__stginit_Prelude"
#endif
+ , "-L", "/usr/local/lib"
]
#ifdef HAVE_FRAMEWORK_HASKELLSUPPORT
, extra_frameworks = [ "HaskellSupport" ]
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs