From 4e8904080d62be07a139436aa44044e05e380a2c Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Wed, 24 Oct 2007 22:47:14 +0200 Subject: [PATCH] Makefile: avoid absolute Windows path in built executables MINGW converts an intial '/' in paths to the full Windows path of MINGW's rootdir. Therefore, the result of the build cannot be installed in another directory. This is fixed by replacing the initial '/' by its octal escape sequence that represents '/' in C strings. This sequence avoids the path conversion. Note, the Makefile contains the full path and can not be used any longer to build git with a different prefix. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 77a011f4a9..8f2f0300f2 100644 --- a/Makefile +++ b/Makefile @@ -735,12 +735,12 @@ endif # Shell quote (do not use $(call) to accommodate ancient setups); SHA1_HEADER_SQ = $(subst ','\'',$(SHA1_HEADER)) -ETC_GITCONFIG_SQ = $(subst ','\'',$(ETC_GITCONFIG)) +ETC_GITCONFIG_SQ = \057etc/gitconfig DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) bindir_SQ = $(subst ','\'',$(bindir)) gitexecdir_SQ = $(subst ','\'',$(gitexecdir)) -template_dir_SQ = $(subst ','\'',$(template_dir)) +template_dir_SQ = \057share/git-core/templates prefix_SQ = $(subst ','\'',$(prefix)) sysconfdir_SQ = $(subst ','\'',$(sysconfdir))