Changes between Version 1 and Version 2 of AddingLibsToBuild


Ignore:
Timestamp:
Sep 17, 2008 9:48:40 AM (6 years ago)
Author:
NeilMitchell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddingLibsToBuild

    v1 v2  
    1 = Manually adding libraries to a GHC build = 
    2  
    3 A GHC source tree for building usually comes with the core libraries, see [wiki:Building/GettingTheSources Getting the sources]. 
    4 The darcs-all script also gets the "extra" libraries if you give the flag --extra. 
    5 However, if you only need one particular library, you can use darcs to manually add it to the build. You need to know the directory name (i.e. the package name) of the library which you want to add. 
    6  
    7 Suppose you have downloaded a GHC source tree as advised: 
    8 {{{ 
    9   $ darcs get --partial http://darcs.haskell.org/ghc 
    10   $ cd ghc 
    11   $ chmod +x darcs-all 
    12   $ ./darcs-all get 
    13 }}} 
    14 You are now in directory {{{ghc}}}.  
    15 Descend into {{{libraries}}} and issue a {{{darcs get <repo>}}} (where {{{<repo>}}} is the repository of the package you want to get, ending in the package {{{<name>}}}. 
    16 A later {{{./darcs-all pull }}} should now pull not only ghc and the core libraries, but also any library you have added like this. 
    17 {{{ 
    18   $ darcs get http://darcs.haskell.org/packages/<name> 
    19   $ cd .. 
    20   $ ./darcs-all pull 
    21 }}} 
    22  
    23 A list of available packages and their repositories can be found at [wiki:DarcsRepositories]. This page also tells you which libraries are core libraries and which are optional for a GHC build. 
     1Moved to [wiki:Building/AddingLibs].