From: Ian Lynagh Date: Sat, 8 Jan 2011 17:16:35 +0000 (+0000) Subject: Make DESTDIR an absolute path when installing; fixes #4883 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=ebd230eb1c459d4d2fdff5d08830e5df37c7c9f9 Make DESTDIR an absolute path when installing; fixes #4883 --- diff --git a/mk/install.mk.in b/mk/install.mk.in index 3d74158..b63ffe3 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 +