diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-06 22:48:13 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-06 23:04:04 +0100 |
commit | 732b3dbbff194eb8650c75afd79d892801afa0dc (patch) | |
tree | bfb36ee2a604767c126261013e72793774599dc3 /driver | |
parent | 59c925e88a1dcb98e62c2b5e0adaa299c3b15e44 (diff) | |
download | haskell-732b3dbbff194eb8650c75afd79d892801afa0dc.tar.gz |
add $(CrossCompilePrefix) to 'runghc' and 'ghci'
When Stage1Only=YES install mode is used one of rare tools
that lack $(CrossCompilePrefix) prefix are 'runghc' and 'ghci'.
This causes file collisions when multiple GHC crosscompilers
are installed in system.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/ghci/ghc.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/driver/ghci/ghc.mk b/driver/ghci/ghc.mk index 41d1f15c17..0f31884080 100644 --- a/driver/ghci/ghc.mk +++ b/driver/ghci/ghc.mk @@ -16,16 +16,16 @@ ifneq "$(Windows_Host)" "YES" install: install_driver_ghci .PHONY: install_driver_ghci -install_driver_ghci: WRAPPER=$(DESTDIR)$(bindir)/ghci-$(ProjectVersion) +install_driver_ghci: WRAPPER=$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghci-$(ProjectVersion) install_driver_ghci: $(INSTALL_DIR) "$(DESTDIR)$(bindir)" $(call removeFiles, "$(WRAPPER)") $(CREATE_SCRIPT) "$(WRAPPER)" echo '#!$(SHELL)' >> "$(WRAPPER)" - echo 'exec "$(bindir)/ghc-$(ProjectVersion)" --interactive "$$@"' >> "$(WRAPPER)" + echo 'exec "$(bindir)/$(CrossCompilePrefix)ghc-$(ProjectVersion)" --interactive "$$@"' >> "$(WRAPPER)" $(EXECUTABLE_FILE) "$(WRAPPER)" - $(call removeFiles,"$(DESTDIR)$(bindir)/ghci") - $(LN_S) ghci-$(ProjectVersion) "$(DESTDIR)$(bindir)/ghci" + $(call removeFiles,"$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghci") + $(LN_S) $(CrossCompilePrefix)ghci-$(ProjectVersion) "$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghci" else # Windows_Host... |