From: Michael Palimaka Date: Wed, 8 Feb 2012 10:59:04 +0000 (+1100) Subject: Explicitly set X to avoid potential build breakage X-Git-Tag: v1.7.9.1~3^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ace5e97ecdf6a6ad8fd4ba443486fbe0058eb37a;p=git-core%2Fgit.git Explicitly set X to avoid potential build breakage $X is appended to binary names for Windows builds (ie. git.exe). Pollution from the environment can inadvertently trigger this behaviour, resulting in 'git' turning into 'gitwhatever' without warning. Signed-off-by: Michael Palimaka Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index b21d2f141..6e70a6d44 100644 --- a/Makefile +++ b/Makefile @@ -428,6 +428,9 @@ PROGRAM_OBJS += upload-pack.o PROGRAM_OBJS += http-backend.o PROGRAM_OBJS += sh-i18n--envsubst.o +# Binary suffix, set to .exe for Windows builds +X = + PROGRAMS += $(patsubst %.o,git-%$X,$(PROGRAM_OBJS)) TEST_PROGRAMS_NEED_X += test-chmtime