switch CABAL to cabal

<joeyh> anyone know why runghc Setup.hs is behaving differently than cabal configure for me?
<joeyh> I'm getting different flags selected
<geekosaur> joeyh, runghc Setup.hs uses --global by default
<geekosaur> cabal uses --local
<nomeata> joeyh: I don’t know the reasons, but I have made similar observations as well
<geekosaur> and if that means different libraries/versions visible, that can affect flag solving
<joeyh> aha!
<monochrom> it is because Cabal authors expect normal people to use cabal-install and linux distro creators to use Setup
<monochrom> the expectation is documented nowhere
This commit is contained in:
Joey Hess 2013-03-10 17:21:13 -04:00
parent 14459a186f
commit b889721afd

View file

@ -4,7 +4,7 @@ all=git-annex $(mans) docs
GHC?=ghc
GHCMAKE=$(GHC) $(GHCFLAGS) --make
PREFIX=/usr
CABAL?=runhaskell Setup.hs
CABAL?=cabal # set to "runghc Setup.hs" if you lack a cabal program
# Am I typing :make in vim? Do a fast build.
ifdef VIM