Skip to content

Commit 48c46f1

Browse files
sprohaskagitster
authored andcommitted
MinGW: Teach Makefile to detect msysgit and apply specific settings
This commit changes handling of the msysgit specific settings, so that they can be applied to official git.git. Some msysgit settings differ from the standard MinGW settings. We move them into an ifndef block that is only evaluated if a file THIS_IS_MSYSGIT is present in the parent directory, which is the case for an msysgit working environment. The tag file is unlikely to be present accidentally. Signed-off-by: Steffen Prohaska <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a21077e commit 48c46f1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,15 +825,13 @@ ifneq (,$(findstring MINGW,$(uname_S)))
825825
pathsep = ;
826826
NO_PREAD = YesPlease
827827
NO_OPENSSL = YesPlease
828-
NO_CURL = YesPlease
829828
NO_SYMLINK_HEAD = YesPlease
830829
NO_IPV6 = YesPlease
831830
NO_SETENV = YesPlease
832831
NO_UNSETENV = YesPlease
833832
NO_STRCASESTR = YesPlease
834833
NO_STRLCPY = YesPlease
835834
NO_MEMMEM = YesPlease
836-
NO_PTHREADS = YesPlease
837835
NEEDS_LIBICONV = YesPlease
838836
OLD_ICONV = YesPlease
839837
NO_C99_FORMAT = YesPlease
@@ -855,6 +853,18 @@ ifneq (,$(findstring MINGW,$(uname_S)))
855853
COMPAT_OBJS += compat/mingw.o compat/fnmatch/fnmatch.o compat/regex/regex.o compat/winansi.o
856854
EXTLIBS += -lws2_32
857855
X = .exe
856+
ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
857+
htmldir=doc/git/html/
858+
prefix =
859+
INSTALL = /bin/install
860+
EXTLIBS += /mingw/lib/libz.a
861+
NO_R_TO_GCC_LINKER = YesPlease
862+
INTERNAL_QSORT = YesPlease
863+
THREADED_DELTA_SEARCH = YesPlease
864+
else
865+
NO_CURL = YesPlease
866+
NO_PTHREADS = YesPlease
867+
endif
858868
endif
859869
ifneq (,$(findstring arm,$(uname_M)))
860870
ARM_SHA1 = YesPlease

0 commit comments

Comments
 (0)