diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-23 15:31:13 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-23 15:39:32 +0100 |
commit | 74e5ec9e63ff40bb8d52041cdc2f602d9bf12eb8 (patch) | |
tree | 07594789e6a71c3b067093c532e2956ace249a65 | |
parent | 8908ba31c4dcb6ce619ec46e88fbbac78651a04b (diff) | |
download | haskell-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>
-rw-r--r-- | ghc.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |