mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 944569 - Relax GNU make requirements on Windows. r=gps
This commit is contained in:
parent
64afb86fb7
commit
81ed6108c7
@ -10,10 +10,17 @@ _OBJ_SUFFIX := $(OBJ_SUFFIX)
|
||||
OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
|
||||
|
||||
ifeq ($(HOST_OS_ARCH),WINNT)
|
||||
# We only support building with pymake or a specially built gnu make.
|
||||
# We only support building with pymake or a non-msys gnu make version
|
||||
# strictly above 4.0.
|
||||
ifndef .PYMAKE
|
||||
ifeq (,$(filter mozmake%,$(notdir $(MAKE))))
|
||||
$(error Only building with pymake or mozmake is supported.)
|
||||
ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
|
||||
$(error MSYS make is not supported)
|
||||
endif
|
||||
# 4.0- happens to be greater than 4.0, lower than the mozmake version,
|
||||
# and lower than 4.0.1 or 4.1, whatever next version of gnu make will
|
||||
# be released.
|
||||
ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
|
||||
$(error Make version too old. Only versions strictly greater than 4.0 are supported.)
|
||||
endif
|
||||
endif
|
||||
ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
|
||||
|
@ -17,10 +17,17 @@ _OBJ_SUFFIX := $(OBJ_SUFFIX)
|
||||
OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
|
||||
|
||||
ifeq ($(HOST_OS_ARCH),WINNT)
|
||||
# We only support building with pymake or a specially built gnu make.
|
||||
# We only support building with pymake or a non-msys gnu make version
|
||||
# strictly above 4.0.
|
||||
ifndef .PYMAKE
|
||||
ifeq (,$(filter mozmake%,$(notdir $(MAKE))))
|
||||
$(error Only building with pymake or mozmake is supported.)
|
||||
ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
|
||||
$(error MSYS make is not supported)
|
||||
endif
|
||||
# 4.0- happens to be greater than 4.0, lower than the mozmake version,
|
||||
# and lower than 4.0.1 or 4.1, whatever next version of gnu make will
|
||||
# be released.
|
||||
ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
|
||||
$(error Make version too old. Only versions strictly greater than 4.0 are supported.)
|
||||
endif
|
||||
endif
|
||||
ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
|
||||
|
Loading…
Reference in New Issue
Block a user