From 70cff4144391c83bdac5c98c99642d29181aa67a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 6 Aug 2007 23:01:57 +0100 Subject: [PATCH] Fix some compiler settings/paths for MinGW It seems that you have to jump through hoops to make trivial things such as "install.exe" do the right thing on Windows... Also, it seems that Windows Vista deliberately broke "access()". Apparently, they used that name in their runtime, but that function does something completely different than POSIX access(). So define __USE_MINGW_ACCESS to work around that. Signed-off-by: Johannes Schindelin --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d42734aeef..85df9a5c67 100644 --- a/Makefile +++ b/Makefile @@ -176,7 +176,7 @@ CC = gcc AR = ar RM = rm -f TAR = tar -INSTALL = install +INSTALL = /bin/install RPMBUILD = rpmbuild TCL_PATH = tclsh TCLTK_PATH = wish @@ -373,7 +373,7 @@ BUILTIN_OBJS = \ builtin-pack-refs.o GITLIBS = $(LIB_FILE) $(XDIFF_LIB) -EXTLIBS = -lz +EXTLIBS = /mingw/lib/libz.a # # Platform specific tweaks @@ -488,7 +488,7 @@ ifneq (,$(findstring MINGW,$(uname_S))) NO_SYMLINKS=YesPlease NO_SVN_TESTS=YesPlease NO_PERL_MAKEMAKER=YesPlease - COMPAT_CFLAGS += -DNO_ETC_PASSWD -DNO_ST_BLOCKS -DSTRIP_EXTENSION=\".exe\" -I compat + COMPAT_CFLAGS += -DNO_ETC_PASSWD -DNO_ST_BLOCKS -DSTRIP_EXTENSION=\".exe\" -D__USE_MINGW_ACCESS -I compat COMPAT_OBJS += compat/mingw.o compat/fnmatch.o compat/regex.o EXTLIBS += -lws2_32 X = .exe