Merge branch 'hj/remove-msys-support'
Remove support for MSys, which now lags way behind MSys2. * hj/remove-msys-support: mingw: remove msysGit/MSYS1 support mingw: remove duplicate `USE_NED_ALLOCATOR` directive
This commit is contained in:
commit
4158b92f16
@ -624,6 +624,9 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
|
|||||||
SHELL_PATH = /usr/coreutils/bin/bash
|
SHELL_PATH = /usr/coreutils/bin/bash
|
||||||
endif
|
endif
|
||||||
ifeq ($(uname_S),MINGW)
|
ifeq ($(uname_S),MINGW)
|
||||||
|
ifeq ($(shell expr "$(uname_R)" : '1\.'),2)
|
||||||
|
$(error "Building with MSys is no longer supported")
|
||||||
|
endif
|
||||||
pathsep = ;
|
pathsep = ;
|
||||||
HAVE_ALLOCA_H = YesPlease
|
HAVE_ALLOCA_H = YesPlease
|
||||||
NO_PREAD = YesPlease
|
NO_PREAD = YesPlease
|
||||||
@ -653,7 +656,6 @@ ifeq ($(uname_S),MINGW)
|
|||||||
USE_WIN32_IPC = YesPlease
|
USE_WIN32_IPC = YesPlease
|
||||||
USE_WIN32_MMAP = YesPlease
|
USE_WIN32_MMAP = YesPlease
|
||||||
MMAP_PREVENTS_DELETE = UnfortunatelyYes
|
MMAP_PREVENTS_DELETE = UnfortunatelyYes
|
||||||
USE_NED_ALLOCATOR = YesPlease
|
|
||||||
UNRELIABLE_FSTAT = UnfortunatelyYes
|
UNRELIABLE_FSTAT = UnfortunatelyYes
|
||||||
OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
|
OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
|
||||||
NO_REGEX = YesPlease
|
NO_REGEX = YesPlease
|
||||||
@ -678,61 +680,43 @@ ifeq ($(uname_S),MINGW)
|
|||||||
RC = windres -O coff
|
RC = windres -O coff
|
||||||
NATIVE_CRLF = YesPlease
|
NATIVE_CRLF = YesPlease
|
||||||
X = .exe
|
X = .exe
|
||||||
ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
|
# MSys2
|
||||||
htmldir = doc/git/html/
|
prefix = /usr/
|
||||||
prefix =
|
# Enable DEP
|
||||||
|
BASIC_LDFLAGS += -Wl,--nxcompat
|
||||||
|
# Enable ASLR (unless debugging)
|
||||||
|
ifneq (,$(findstring -O,$(filter-out -O0 -Og,$(CFLAGS))))
|
||||||
|
BASIC_LDFLAGS += -Wl,--dynamicbase
|
||||||
|
endif
|
||||||
|
ifeq (MINGW32,$(MSYSTEM))
|
||||||
|
prefix = /mingw32
|
||||||
|
HOST_CPU = i686
|
||||||
|
BASIC_LDFLAGS += -Wl,--pic-executable,-e,_mainCRTStartup
|
||||||
|
endif
|
||||||
|
ifeq (MINGW64,$(MSYSTEM))
|
||||||
|
prefix = /mingw64
|
||||||
|
HOST_CPU = x86_64
|
||||||
|
BASIC_LDFLAGS += -Wl,--pic-executable,-e,mainCRTStartup
|
||||||
|
else
|
||||||
|
COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
|
||||||
|
BASIC_LDFLAGS += -Wl,--large-address-aware
|
||||||
|
endif
|
||||||
|
CC = gcc
|
||||||
|
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY \
|
||||||
|
-fstack-protector-strong
|
||||||
|
EXTLIBS += -lntdll
|
||||||
INSTALL = /bin/install
|
INSTALL = /bin/install
|
||||||
EXTLIBS += /mingw/lib/libz.a
|
|
||||||
INTERNAL_QSORT = YesPlease
|
INTERNAL_QSORT = YesPlease
|
||||||
HAVE_LIBCHARSET_H = YesPlease
|
HAVE_LIBCHARSET_H = YesPlease
|
||||||
NO_GETTEXT = YesPlease
|
USE_GETTEXT_SCHEME = fallthrough
|
||||||
NO_PYTHON = YesPlease
|
USE_LIBPCRE = YesPlease
|
||||||
COMPAT_CFLAGS += -D__USE_MINGW_ACCESS
|
USE_NED_ALLOCATOR = YesPlease
|
||||||
else
|
ifeq (/mingw64,$(subst 32,64,$(prefix)))
|
||||||
ifneq ($(shell expr "$(uname_R)" : '1\.'),2)
|
# Move system config into top-level /etc/
|
||||||
# MSys2
|
ETC_GITCONFIG = ../etc/gitconfig
|
||||||
prefix = /usr/
|
ETC_GITATTRIBUTES = ../etc/gitattributes
|
||||||
# Enable DEP
|
|
||||||
BASIC_LDFLAGS += -Wl,--nxcompat
|
|
||||||
# Enable ASLR (unless debugging)
|
|
||||||
ifneq (,$(findstring -O,$(filter-out -O0 -Og,$(CFLAGS))))
|
|
||||||
BASIC_LDFLAGS += -Wl,--dynamicbase
|
|
||||||
endif
|
|
||||||
ifeq (MINGW32,$(MSYSTEM))
|
|
||||||
prefix = /mingw32
|
|
||||||
HOST_CPU = i686
|
|
||||||
BASIC_LDFLAGS += -Wl,--pic-executable,-e,_mainCRTStartup
|
|
||||||
endif
|
|
||||||
ifeq (MINGW64,$(MSYSTEM))
|
|
||||||
prefix = /mingw64
|
|
||||||
HOST_CPU = x86_64
|
|
||||||
BASIC_LDFLAGS += -Wl,--pic-executable,-e,mainCRTStartup
|
|
||||||
else
|
|
||||||
COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
|
|
||||||
BASIC_LDFLAGS += -Wl,--large-address-aware
|
|
||||||
endif
|
|
||||||
CC = gcc
|
|
||||||
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY \
|
|
||||||
-fstack-protector-strong
|
|
||||||
EXTLIBS += -lntdll
|
|
||||||
INSTALL = /bin/install
|
|
||||||
INTERNAL_QSORT = YesPlease
|
|
||||||
HAVE_LIBCHARSET_H = YesPlease
|
|
||||||
USE_GETTEXT_SCHEME = fallthrough
|
|
||||||
USE_LIBPCRE = YesPlease
|
|
||||||
USE_NED_ALLOCATOR = YesPlease
|
|
||||||
ifeq (/mingw64,$(subst 32,64,$(prefix)))
|
|
||||||
# Move system config into top-level /etc/
|
|
||||||
ETC_GITCONFIG = ../etc/gitconfig
|
|
||||||
ETC_GITATTRIBUTES = ../etc/gitattributes
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
|
|
||||||
NO_CURL = YesPlease
|
|
||||||
NO_PYTHON = YesPlease
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
ifeq ($(uname_S),QNX)
|
ifeq ($(uname_S),QNX)
|
||||||
COMPAT_CFLAGS += -DSA_RESTART=0
|
COMPAT_CFLAGS += -DSA_RESTART=0
|
||||||
EXPAT_NEEDS_XMLPARSE_H = YesPlease
|
EXPAT_NEEDS_XMLPARSE_H = YesPlease
|
||||||
|
Loading…
Reference in New Issue
Block a user