passing an option to gcc without a -

Ferenc Wagner wferi@afavant.elte.hu
Thu, 25 Jul 2002 20:51:00 +0200


Hal Daume III <hdaume@ISI.EDU> writes:

> I'm linking with a .a file built from C [...] so i tried
>
>   ghc MyFile.hs -o myout -optctheafile.a
>
> but this doesn't appear to pass the paramter.

If it's acceptable, you can try

mv theafile.a libtheafile.a
ghc MyFile.hs -o myout -L. -ltheafile

Just a thought.
                                        Feri.