summaryrefslogtreecommitdiff
path: root/mk/install.mk.in
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-08 17:16:35 +0000
committerIan Lynagh <igloo@earth.li>2011-01-08 17:16:35 +0000
commitebd230eb1c459d4d2fdff5d08830e5df37c7c9f9 (patch)
tree0d75d830f677fa26feca433e74e8c6888a353fdf /mk/install.mk.in
parent9fc1b8f32d66e7abf2bed504fb59461f37a77169 (diff)
downloadhaskell-ebd230eb1c459d4d2fdff5d08830e5df37c7c9f9.tar.gz
Make DESTDIR an absolute path when installing; fixes #4883
Diffstat (limited to 'mk/install.mk.in')
-rw-r--r--mk/install.mk.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/install.mk.in b/mk/install.mk.in
index 3d74158982..b63ffe38d7 100644
--- a/mk/install.mk.in
+++ b/mk/install.mk.in
@@ -179,3 +179,7 @@ endif
# NB. we use negative tests here because for binary-distributions we cannot
# test build-time variables at install-time, so they must default to on.
+ifneq "$(DESTDIR)" ""
+override DESTDIR := $(abspath $(DESTDIR))
+endif
+