X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fcabal-flags.mk;h=bfa11a84b05b52ab6d48ef94a3abe4cd1b68eda8;hb=5892af0e08fdb890b5a0b9a64346d9f7773a6ed8;hp=7a137ced4d190306c07f41f35f277d5c2c06ee54;hpb=64137b1730defb4cb5ed95c54eec26014ee0fb27;p=ghc-hetmet.git diff --git a/mk/cabal-flags.mk b/mk/cabal-flags.mk index 7a137ce..bfa11a8 100644 --- a/mk/cabal-flags.mk +++ b/mk/cabal-flags.mk @@ -1,6 +1,7 @@ nothing= space=$(nothing) $(nothing) +comma=, GHC_PKG_INSTALL_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg @@ -11,6 +12,11 @@ INSTALL_PACKAGE = \ $(UTILS_ABS)/installPackage/install-inplace/bin/installPackage STAGE3_PACKAGE_CONF = $(FPTOOLS_TOP_ABS)/stage3.package.conf +# Euch, hideous hack: +CABAL_DOTTED_VERSION = $(shell grep "^Version:" $(LIBRARIES_ABS)/Cabal/Cabal.cabal | sed "s/^Version: //") +CABAL_VERSION = $(subst .,$(comma),$(CABAL_DOTTED_VERSION)) +CABAL_CONSTRAINT = --constraint="Cabal == $(CABAL_DOTTED_VERSION)" + # We rely on all the CONFIGURE_ARGS being quoted with '...', and there # being no 's inside the values. FLAGGED_CONFIGURE_ARGS = $(subst $(space)',\