> ghc-5.00.1 User's guide says
>
> extra_ghc_opts
> Extra arguments to be added to the GHC command line when this
> package is being used.
>
> I tried
> (file p.txt)
> Package {name = "foo", import_dirs = [],
> source_dirs = [], library_dirs = [],
> hs_libraries = [], extra_libraries = [],
> include_dirs = [], c_includes = [],
> package_deps = [], extra_ghc_opts = ["-v"],
> extra_cc_opts = [], extra_ld_opts = []
> }
> ghc-pkg -a < p.txt
>
> main = putStr "hello\n" (file Main.hs)
>
> ghc -c -package foo Main.hs
>
>
> expecting that it would add -v automatically after -c.
> But it does not
> (ghc-5.00.1 binary for Linux i386-unknown).
That does indeed look like a bug: we don't pay any attention to the
extra_ghc_opts at all.
In fact, I'd like to remove that line from the package spec altogether,
since the package spec isn't supposed to be ghc-specific at all. So
unless you have a particularly good use for it, could I remove
extra_ghc_opts?
Cheers,
Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs