summaryrefslogtreecommitdiff
path: root/ghc/ghc.mk
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2012-08-30 15:02:56 +0200
committerGabor Greif <ggreif@gmail.com>2012-08-30 15:02:56 +0200
commitb660cc0b3f6ea09ecc7f8fdef9ac79704c3ccaf0 (patch)
tree7e1e699a469c86b9df22b4abf8ca211d9bd59aa8 /ghc/ghc.mk
parentbcef1e2847ce009f0b139abce1fb664733768c50 (diff)
downloadhaskell-b660cc0b3f6ea09ecc7f8fdef9ac79704c3ccaf0.tar.gz
make sure to remove the right link before calling 'ln -s' (could we use 'ln -sf'?)
Diffstat (limited to 'ghc/ghc.mk')
-rw-r--r--ghc/ghc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index a13f03b875..c45e28891a 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -1,6 +1,6 @@
# -----------------------------------------------------------------------------
#
-# (c) 2009 The University of Glasgow
+# (c) 2009-2012 The University of Glasgow
#
# This file is part of the GHC build system.
#
@@ -159,7 +159,7 @@ ifeq "$(Windows)" "NO"
install: install_ghc_link
.PHONY: install_ghc_link
install_ghc_link:
- $(call removeFiles,"$(DESTDIR)$(bindir)/ghc")
+ $(call removeFiles,"$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghc")
$(LN_S) $(CrossCompilePrefix)ghc-$(ProjectVersion) "$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghc"
else
# On Windows we install the main binary as $(bindir)/ghc.exe