diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2007-12-08 20:57:25 +0100 |
---|---|---|
committer | Johannes Sixt <johannes.sixt@telecom.at> | 2008-06-23 13:34:55 +0200 |
commit | 23326d14edbd16469453f6c3ecdd98ab90e6efb7 (patch) | |
tree | 0c2c562c5338e53dd9c05defe26016c3165b0a1c /Makefile | |
parent | 8385abfda533819be9fbec436230ccd7be4bcda8 (diff) | |
download | git-23326d14edbd16469453f6c3ecdd98ab90e6efb7.tar.gz |
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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |