Updating the net package

Simon Marlow simonmar@microsoft.com
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:
>=20
>=20
> prefix			=3D /home/djs25/testghc
>=20
> I should then be able to invoke my test ghc as
>=20
> /home/djs25/testghc/ghc-5.02.2/bin/ghc
>=20
> I have some questions:
>=20
> 1. How does ghc know where to get its libraries from?
> Will it pick them up from
>=20
> /home/djs25/testghc/ghc-5.02.2/bin/ghc
>=20
> or
>=20
> /usr/lib/ghc-5.02.2

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
>=20
> /home/djs25/testghc/ghc-5.02.2/bin/ghc --version
>=20
> to give
>=20
> The Glorious Glasgow Haskell Compilation System, version 5.02.2test
>=20
> 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.

Cheers,
	Simon