From: Debian Haskell Group Date: Mon, 25 Jun 2018 09:24:52 +0000 (+0100) Subject: use-stage1-binaries-for-install X-Git-Tag: archive/raspbian/8.2.2-4+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4c3470a7547447948c95540b4ae2fd8f043a8208;p=ghc.git use-stage1-binaries-for-install Gbp-Pq: Name use-stage1-binaries-for-install.patch --- diff --git a/ghc.mk b/ghc.mk index f03c8f6c..189f9b02 100644 --- a/ghc.mk +++ b/ghc.mk @@ -963,8 +963,12 @@ INSTALLED_PACKAGE_CONF=$(DESTDIR)$(topdir)/package.conf.d # 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