From: John Paul Adrian Glaubitz Date: Wed, 23 Dec 2020 22:15:42 +0000 (+0000) Subject: Use the stage1 binaries for install X-Git-Tag: archive/raspbian/8.8.4-2+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=425b1dda213c10acbc2c97c2b0236c5ec3ef92b1;p=ghc.git Use the stage1 binaries for install Last-Update: 2017-01-29 In order to be able to perform a cross-build, we need to use the stage1 binaries during installation. Both ghc and ghc-pkg are run during the install target and therefore must be able to run on the build machine. Gbp-Pq: Name use-stage1-binaries-for-install.patch --- diff --git a/ghc.mk b/ghc.mk index 9cddfcbd..38b8eb56 100644 --- a/ghc.mk +++ b/ghc.mk @@ -963,8 +963,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