summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2019-10-06 12:35:24 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-07 12:07:08 -0400
commit4df39fd071aa5b6863818212df116547201cd29c (patch)
tree5e27be6b483369bc4602afd6d4ed8ec4a3b3172a
parent9a6bfb0a0b4c3a29652df1320c30035e1347949d (diff)
downloadhaskell-4df39fd071aa5b6863818212df116547201cd29c.tar.gz
Get rid of GHC_PACKAGE_DB_FLAG
We no longer support booting from older GHC since 527bcc41630918977c73584d99125ff164400695.
-rw-r--r--configure.ac3
-rw-r--r--mk/config.mk.in2
-rw-r--r--rules/package-config.mk6
-rw-r--r--utils/ghc-cabal/ghc.mk2
4 files changed, 4 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 0a543c76cf..1ce075fe55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -166,9 +166,6 @@ then
fi
fi
-GHC_PACKAGE_DB_FLAG=package-db
-AC_SUBST(GHC_PACKAGE_DB_FLAG)
-
# GHC is passed to Cabal, so we need a native path
if test "${WithGhc}" != ""
then
diff --git a/mk/config.mk.in b/mk/config.mk.in
index f9dbf4bc5a..a946b17bf9 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -474,8 +474,6 @@ else
GhcCanonVersion = $(GhcMajVersion)$(GhcMinVersion)
endif
-GHC_PACKAGE_DB_FLAG = @GHC_PACKAGE_DB_FLAG@
-
#-----------------------------------------------------------------------------
# Settings
diff --git a/rules/package-config.mk b/rules/package-config.mk
index 4d9737f05d..86054071ad 100644
--- a/rules/package-config.mk
+++ b/rules/package-config.mk
@@ -34,10 +34,10 @@ $1_$2_HC_MK_DEPEND = $$($1_$2_HC)
# on cygwin we get a dep on c:/ghc/..., and make gets confused by the :
$1_$2_HC_MK_DEPEND_DEP =
$1_$2_HC_DEP =
-$1_$2_HC_PKGCONF = -$(GHC_PACKAGE_DB_FLAG) $$(BOOTSTRAPPING_CONF)
-$1_$2_GHC_PKG_OPTS = --$(GHC_PACKAGE_DB_FLAG)=$$(BOOTSTRAPPING_CONF)
+$1_$2_HC_PKGCONF = -package-db $$(BOOTSTRAPPING_CONF)
+$1_$2_GHC_PKG_OPTS = --package-db=$$(BOOTSTRAPPING_CONF)
$1_$2_CONFIGURE_OPTS += --package-db=$$(TOP)/$$(BOOTSTRAPPING_CONF)
-$1_$2_MORE_HC_OPTS += -no-user-$(GHC_PACKAGE_DB_FLAG)
+$1_$2_MORE_HC_OPTS += -no-user-package-db
$1_$2_MORE_HC_OPTS += -rtsopts
else
$1_$2_HC_PKGCONF =
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk
index 02e8ccd71a..c921f329cb 100644
--- a/utils/ghc-cabal/ghc.mk
+++ b/utils/ghc-cabal/ghc.mk
@@ -62,7 +62,7 @@ $(ghc-cabal_DIST_BINARY): $(CABAL_LEXER_DEP) utils/ghc-cabal/Main.hs $(TOUCH_DEP
-hide-all-packages \
$(addprefix -package , $(CABAL_BUILD_DEPS)) \
--make utils/ghc-cabal/Main.hs -o $@ \
- -no-user-$(GHC_PACKAGE_DB_FLAG) \
+ -no-user-package-db \
-Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations \
-DCABAL_VERSION=$(CABAL_VERSION) \
-DCABAL_PARSEC \