From: simonmar Date: Mon, 24 Jul 2000 15:31:47 +0000 (+0000) Subject: [project @ 2000-07-24 15:31:47 by simonmar] X-Git-Tag: Approximately_9120_patches~3951 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=a8e67124d36c0855a594593627a50e55dc7954ba;p=ghc-hetmet.git [project @ 2000-07-24 15:31:47 by simonmar] update documentation to reflect changes in the format of a package spec. --- diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index 42c1a56..56671be 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -1673,15 +1673,16 @@ construction of interface files, is (allegedly) in the works. "4.08", Package { - import_dirs = ["/usr/local/lib/imports/mypkg"], - library_dirs = ["/usr/local/lib"], - libraries = ["HSmypkg", "HSmypkg_cbits"], - include_dirs = [], - c_includes = ["HsMyPkg.h"], - package_deps = ["text", "data"], - extra_ghc_opts = [], - extra_cc_opts = [], - extra_ld_opts = ["-lmy_clib"] + import_dirs = ["/usr/local/lib/imports/mypkg"], + library_dirs = ["/usr/local/lib"], + hs_libraries = ["HSmypkg" ], + extra_libraries = ["HSmypkg_cbits"], + include_dirs = [], + c_includes = ["HsMyPkg.h"], + package_deps = ["text", "data"], + extra_ghc_opts = [], + extra_cc_opts = [], + extra_ld_opts = ["-lmy_clib"] } ) @@ -1717,14 +1718,42 @@ construction of interface files, is (allegedly) in the works. - libraries - libraries + hs_libraries + hs_libraries package specification - A list of libraries for this package, with the - .a or .dll suffix - omitted. On Unix, the lib prefix is - also omitted. + A list of libraries containing Haskell code for this + package, with the .a or + .dll suffix omitted. On Unix, the + lib prefix is also omitted. + + + + + extra_libraries + extra_libraries + package specification + + A list of extra libraries for this package. The + difference between hs_libraries and + extra_libraries is that + hs_libraries normally have several + versions, to support profiling, parallel and other build + options. The various versions are given different + suffixes to distinguish them, for example the profiling + version of the standard prelude library is named + libHSstd_p.a, with the + _p indicating that this is a profiling + version. The suffix is added automatically by GHC for + hs_libraries only, no suffix is added + for libraries in + extra_libraries. + + Also, extra_libraries are placed + on the linker command line before the + hs_libraries for the same package. If + your package has dependencies in the other direction, you + might need to make two separate packages.