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 /utils/runghc | |
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 'utils/runghc')
-rw-r--r-- | utils/runghc/ghc.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/runghc/ghc.mk b/utils/runghc/ghc.mk index 9169ca21bd..50b11a612e 100644 --- a/utils/runghc/ghc.mk +++ b/utils/runghc/ghc.mk @@ -34,11 +34,11 @@ install: install_runhaskell .PHONY: install_runhaskell ifeq "$(Windows_Host)" "YES" install_runhaskell: install_bins - "$(CP)" $(DESTDIR)$(bindir)/runghc$(exeext1) $(DESTDIR)$(bindir)/runhaskell$(exeext1) + "$(CP)" $(DESTDIR)$(bindir)/$(CrossCompilePrefix)runghc$(exeext1) $(DESTDIR)$(bindir)/$(CrossCompilePrefix)runhaskell$(exeext1) else install_runhaskell: - $(call removeFiles,"$(DESTDIR)$(bindir)/runhaskell") - $(LN_S) runghc "$(DESTDIR)$(bindir)/runhaskell" - $(call removeFiles,"$(DESTDIR)$(bindir)/runghc") - $(LN_S) runghc-$(ProjectVersion) "$(DESTDIR)$(bindir)/runghc" + $(call removeFiles,"$(DESTDIR)$(bindir)/$(CrossCompilePrefix)runhaskell") + $(LN_S) $(CrossCompilePrefix)runghc "$(DESTDIR)$(bindir)/$(CrossCompilePrefix)runhaskell" + $(call removeFiles,"$(DESTDIR)$(bindir)/$(CrossCompilePrefix)runghc") + $(LN_S) $(CrossCompilePrefix)runghc-$(ProjectVersion) "$(DESTDIR)$(bindir)/$(CrossCompilePrefix)runghc" endif |