passing an option to gcc without a -

Simon Marlow simonmar@microsoft.com
Fri, 26 Jul 2002 09:42:53 +0100


> I'm linking with a .a file built from C; when I do this on a=20
> C program I
> do something like:
>=20
>   gcc myfile.c -o myout theafile.a
>=20
> so i tried
>=20
>   ghc MyFile.hs -o myout -optctheafile.a
>=20
> but this doesn't appear to pass the paramter.  when i run with -v3 and
> inspect the call to gcc it doesn't include this option.  if i=20
> copy that
> call to gcc and add it maually at the command line, everything's cool

You want the option passed when *linking*, so I think you want -optl
rather than -optc.

Cheers,
	Simon