ghc --make and static libraries
Simon Marlow
simonmar@microsoft.com
Tue, 15 Oct 2002 14:17:05 +0100
> How do I go about linking to a static library when using --make?
>=20
> If i do
>=20
> ghc --make Module libmodulelib.a
>=20
> then ghc syas:
>=20
> chasing modules from Module,libmodulelib.a and complains=20
> about not being
> able to find the _module_ modulelib.a. Likewise on windows, if I do
>=20
> ghc --make Module modulelib.dll
>=20
> it also complains about not finding the _module_ modulelib.dll.
>=20
> If I specify the object files that makes up modulelib then=20
> there are no
> complaints, likewise, if I link without --make, ghc uses the library
> just fine.
Thanks, I've fixed this to do The Right Thing, I think.
Cheers,
Simon