aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-12-08 20:57:25 +0100
committerJohannes Sixt <johannes.sixt@telecom.at>2008-06-23 13:34:55 +0200
commit23326d14edbd16469453f6c3ecdd98ab90e6efb7 (patch)
tree0c2c562c5338e53dd9c05defe26016c3165b0a1c /Makefile
parent8385abfda533819be9fbec436230ccd7be4bcda8 (diff)
downloadgit-23326d14edbd16469453f6c3ecdd98ab90e6efb7.tar.gz
git-23326d14edbd16469453f6c3ecdd98ab90e6efb7.tar.xz
Windows: Strip ".exe" from the program name.
Before we can successfully parse a builtin command from the program name we must strip off unneeded parts, that is, the file extension. Furthermore, we must take Windows style path names into account when we parse the program name. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a7dafa758..9c5aae03b 100644
--- a/Makefile
+++ b/Makefile
@@ -735,6 +735,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
NO_POSIX_ONLY_PROGRAMS = YesPlease
COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -DNOGDI -Icompat
COMPAT_CFLAGS += -DSNPRINTF_SIZE_CORR=1
+ COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
COMPAT_OBJS += compat/mingw.o compat/fnmatch.o compat/regex.o
EXTLIBS += -lws2_32
X = .exe