Linking and Including nonstandard paths
Simon Peyton-Jones
simonpj at microsoft.com
Fri Apr 6 03:18:27 EDT 2007
I wonder if this package.conf hacking would be a good topic for a GHC wiki page? Somewhere here:
http://haskell.org/haskellwiki/GHC
Simon
| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org [mailto:glasgow-haskell-users-bounces at haskell.org] On
| Behalf Of Duncan Coutts
| Sent: 05 April 2007 23:44
| To: Chris McCraw
| Cc: Glasgow-haskell-users at haskell.org
| Subject: Re: Linking and Including nonstandard paths
|
| On Thu, 2007-04-05 at 17:20 -0500, Chris McCraw wrote:
|
| > 1) I'd like to embed an additional library search directory in ghc so
| > that it does the equivalent of -L/path/to/extra/dir every time it's
| > used to link something. Unfortunately, our libgmp resides in a nonstandard
| > directory and so *every time* someone wants to compile they must
| > ghc -L/lusr/gnu/lib ...
| > to find -lgmp.
|
| Modify the library-dirs used by the rts packages to include your extra
| linker search path. eg:
|
| - library-dirs: /usr/local/lib/ghc-6.6
| + library-dirs: /usr/local/lib/ghc-6.6, /lusr/gnu/lib
|
| First, backup ghc's package.conf file just in case...
|
| Then:
| $ ghc-pkg describe rts > rts.package.conf
| $ $EDITOR rts.package.conf
| $ ghc-pkg update rts.package.conf
|
| Duncan
|
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
More information about the Glasgow-haskell-users
mailing list