summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-04-23 15:31:13 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-04-23 15:39:32 +0100
commit74e5ec9e63ff40bb8d52041cdc2f602d9bf12eb8 (patch)
tree07594789e6a71c3b067093c532e2956ace249a65 /ghc.mk
parent8908ba31c4dcb6ce619ec46e88fbbac78651a04b (diff)
downloadhaskell-74e5ec9e63ff40bb8d52041cdc2f602d9bf12eb8.tar.gz
ghc.mk: fix 'make install' for cross-mingw32
Attempt to install cross-compiled mingw32 GHC built on linux failed as: $ make install DESTDIR=$(pwd)/__i__ "mv" "$(pwd)/__i__/usr/local/lib/ghc-8.3.20170422/bin/ghc-stage2" \ "$(pwd)/__i__/usr/local/lib/ghc-8.3.20170422/bin/ghc" mv: failed to stat '$(pwd)/__i__/usr/local/lib/ghc-8.3.20170422/bin/ghc-stage2': \ No such file or directory The rename should not be performed for windows targets. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index d1dbb9eb4f..a6354ad7b6 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -924,7 +924,7 @@ ifneq "$(INSTALL_LIBEXECS)" ""
done
# We rename ghc-stage2, so that the right program name is used in error
# messages etc.
-ifeq "$(Windows_Host)" "NO"
+ifeq "$(Windows_Target)" "NO"
"$(MV)" "$(DESTDIR)$(ghclibexecdir)/bin/ghc-stage$(INSTALL_GHC_STAGE)" "$(DESTDIR)$(ghclibexecdir)/bin/ghc"
endif
endif