Fix MinGW make clean.

Reported by Shmuel Zeigerman.
This commit is contained in:
Mike Pall 2019-12-08 19:16:34 +01:00
parent 08272de59e
commit c43b6a9137

View File

@ -158,7 +158,6 @@ XCFLAGS=
ifeq (Windows,$(findstring Windows,$(OS))$(MSYSTEM)$(TERM)) ifeq (Windows,$(findstring Windows,$(OS))$(MSYSTEM)$(TERM))
HOST_SYS= Windows HOST_SYS= Windows
HOST_RM= del
else else
HOST_SYS:= $(shell uname -s) HOST_SYS:= $(shell uname -s)
ifneq (,$(findstring MINGW,$(HOST_SYS))) ifneq (,$(findstring MINGW,$(HOST_SYS)))
@ -296,6 +295,7 @@ ifeq (Windows,$(TARGET_SYS))
TARGET_STRIP+= --strip-unneeded TARGET_STRIP+= --strip-unneeded
TARGET_XSHLDFLAGS= -shared TARGET_XSHLDFLAGS= -shared
TARGET_DYNXLDOPTS= TARGET_DYNXLDOPTS=
HOST_RM= del
else else
TARGET_AR+= 2>/dev/null TARGET_AR+= 2>/dev/null
ifeq (,$(shell $(TARGET_CC) -o /dev/null -c -x c /dev/null -fno-stack-protector 2>/dev/null || echo 1)) ifeq (,$(shell $(TARGET_CC) -o /dev/null -c -x c /dev/null -fno-stack-protector 2>/dev/null || echo 1))