What happened to -optdep option?

Volker Wysk post at volker-wysk.de
Fri May 6 00:49:46 UTC 2016


Hello!

Am Freitag, 6. Mai 2016, 00:35:01 CEST schrieb Bertram Felgenhauer:
> Volker Wysk wrote:
> > Hello!
> > 
> > I'm using GHC 7.10.3 after an upgrade. I have the following in my
> > Makefile:
> > 
> > depend_mod :: lib/abh
> > 
> > 	ghc -M $(CFLAGS_GHC_0) -dep-makefile -optdepbuild/depend.tmp -dep-suffix
> > 	"p_"
> You should drop the -optdep here
> 
> > \
> > 
> > 	       $(foreach m, $(MOD_HS) $(PROG_HS), src/$(m).hs) \
> > 	       $(foreach m, $(MOD_CHS) $(PROG_CHS), build/$(m).hs)
> > 	       
> >         ...
> > 
> > This used to work. The previous GHC version was 7.8.
> 
> As a side effect of finally removing the -optdep-f flag,
> 
>   https://ghc.haskell.org/trac/ghc/ticket/2773
>   (another relevant commit is  994d5e3cfc32cb624b63683205dd8fd876171d0c)
> 
> the code that strips -optdep from the filename, which was required to
> make  -optdep-f -optdepfoo  work, also got removed. The fact that
> -dep-makefile continued to strip -optdep was an accident in my view.

I've fixed it by removing "-optdepbuild/depend.tmp" and replacing "-dep-
makefile" with "-dep-makefile build/depend.tmp". Thanks.

Volker


More information about the Glasgow-haskell-users mailing list