From e9d3becfe9e1959855dbba8d93b2c6a78f2ca35b Mon Sep 17 00:00:00 2001 From: Debian Haskell Group Date: Thu, 28 Feb 2019 14:18:49 +0000 Subject: [PATCH] use-stage1-binaries-for-install Gbp-Pq: Name use-stage1-binaries-for-install.patch --- ghc.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ghc.mk b/ghc.mk index 08d4c054..03b4eb39 100644 --- a/ghc.mk +++ b/ghc.mk @@ -972,8 +972,12 @@ else # CrossCompiling # Install packages in the right order, so that ghc-pkg doesn't complain. # Also, install ghc-pkg first. ifeq "$(Windows_Host)" "NO" -INSTALLED_GHC_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc -INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc-pkg +# Use the inplace/stage1 versions for installation, +# since the installed versions are built for the target +#INSTALLED_GHC_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc +#INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc-pkg +INSTALLED_GHC_REAL=$(CURDIR)/inplace/bin/ghc-stage1 +INSTALLED_GHC_PKG_REAL=$(CURDIR)/utils/ghc-pkg/dist/build/tmp/ghc-pkg else INSTALLED_GHC_REAL=$(DESTDIR)$(bindir)/ghc.exe INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(bindir)/ghc-pkg.exe -- 2.30.2