mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
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.
This commit is contained in:
4
Makefile
4
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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user