Updating the net package
Fri, 14 Jun 2002 10:12:39 +0100
> I'm now ready to "make". I have set up a mk/build.mk with
> the just following line:
> prefix =3D /home/djs25/testghc
> I should then be able to invoke my test ghc as
> I have some questions:
> 1. How does ghc know where to get its libraries from?
> Will it pick them up from
If you invoke fptools/ghc/compiler/ghc, then it looks for libraries in
$(prefix)/lib/ghc-$(version). If you instead invoke
fptools/ghc/compiler/ghc-inplace, then it looks for libraries in the
source tree (we call this the "in-place" compiler).
> 2. What do I put in build.mk to change the version? I would like
> /home/djs25/testghc/ghc-5.02.2/bin/ghc --version
> to give
> The Glorious Glasgow Haskell Compilation System, version 5.02.2test
> so that I know am picking up my test version rather than the=20
> real thing.
You can fiddle with the version in fptools/ghc/mk/version.mk, but I
can't guarantee that if you don't use a version of the form A.BB.C or
A.BB.<date>, then things will work properly. eg. configure scripts
which look for GHC will attempt to parse the version number and fail if
it isn't in a recognised form.