From: simonmar Date: Tue, 18 Sep 2001 11:33:58 +0000 (+0000) Subject: [project @ 2001-09-18 11:33:58 by simonmar] X-Git-Tag: Approximately_9120_patches~957 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ab9b9104ed62dc8734dcb3cd76e8815ecddfa1d1;p=ghc-hetmet.git [project @ 2001-09-18 11:33:58 by simonmar] document new --auto-ghci-libs option. --- diff --git a/ghc/docs/users_guide/packages.sgml b/ghc/docs/users_guide/packages.sgml index 1a98edd..b75a6d8 100644 --- a/ghc/docs/users_guide/packages.sgml +++ b/ghc/docs/users_guide/packages.sgml @@ -106,7 +106,7 @@ The Haskell code in a package may be built into one or - more Unix libraries (e.g. libHSfoo.a), + more archive libraries (e.g. libHSfoo.a), or a single DLL on Windows (e.g. HSfoo.dll). The restriction to a single DLL on Windows is that the package system is used to @@ -120,15 +120,14 @@ Versions of the Haskell libraries for use with GHCi may also be included: GHCi cannot load .a files directly, instead it will look for an object file - called HSfoo.o (the object suffix - varies between platforms, as usual) and load that. An - object file can be built from a .a - archive as follows (using GNU ld on - Unix): - - -ld -r --whole-archive -o HSfoo.o libHSfoo.a - + called HSfoo.o and load that. The + ghc-pkg tool can automatically build the + GHCi version of each library, see . To build these libraries by + hand from the .a archive, it is possible + to use GNU ld as follows: + +ld -r --whole-archive -o HSfoo.o libHSfoo.a @@ -201,6 +200,28 @@ ld -r --whole-archive -o HSfoo.o libHSfoo.a + + + + + + Automatically generate the GHCi + .o version of each + .a Haskell library, using GNU ld (if + that is available). Without this option, + ghc-pkg will warn if GHCi versions of + any Haskell libraries in the package don't exist. + + GHCi .o libraries don't + necessarily have to live in the same directory as the + corresponding .a library. However, + this option will cause the GHCi library to be created in + the same directory as the .a + library. + + + +