Changes between Version 10 and Version 11 of Building/Solaris


Ignore:
Timestamp:
Jan 23, 2009 1:52:09 PM (7 years ago)
Author:
duncan
Comment:

make it clear in what cases we would want to avoid hard coding paths

Legend:

Unmodified
Added
Removed
Modified
  • Building/Solaris

    v10 v11  
    1818}}}
    1919
    20 Note: part of the aim of these instructions is to build a ghc that will not require the use of `LD_LIBRARY_PATH`. That is, it should not be required to run ghc itself, or any of the programs built by ghc.
     20Note: part of the aim of these instructions is to build a ghc that will not require the use of `LD_LIBRARY_PATH`. That is, it should not be required to run ghc itself, or any of the programs built by ghc. This is appropriate for installing on a single machine or a set of identically configured machine, or for a binary package collection. However this is not appropriate if you are trying to build a generic, relocatable, redistributable binary package. In that case you do not want to hard code the location of libraries or programs and the user of the package will have to set their `$PATH` and `LD_LIBRARY_PATH` appropriately. The differences are noted below.
    2121
    2222In the example below we will assume that the bootstrapping ghc is installed in `/opt/ghc-bin` and that our final ghc will be installed to `/opt/ghc`.
     
    5555}}}
    5656
    57 Of course, it may also make sense to omit the `--with-gcc=` flag (with an exotic path) and leave it to the user to ensure the proper `gcc` is found via the $PATH`.
     57Of course, if you are building a relocatable binary package then it makes sense to omit the `--with-gcc=` flag (with an exotic path) and leave it to the user to ensure the proper `gcc` is found via the $PATH`.
    5858
    5959== Fixing the `unix` package ==
     
    9696In the editing step you need to add the `-R/path/to/gmp/lib` to the `ld-options` field.
    9797
    98 Again, it may easier to avoid possibly wrong `-L` or `-R` linker flags (being baked in) and just leave it to the user to set up a proper `$LD_LIBRARY_PATH`.
     98Again, if you are building a relocatable binary package then you will want to avoid `-L` or `-R` linker flags being baked in and instead require that the end user set an appropriate `$LD_LIBRARY_PATH`.
    9999
    100100== Using readline from a non-standard location ==