fix Cygwin/MSYS2 ld: unrecognized option '-z'

The '-z' options don't supported for Windows versions of ld.
This commit is contained in:
simbit18 2023-10-17 15:57:26 +02:00 committed by Xiang Xiao
parent a34be7f7c2
commit b5d640acc5

View File

@ -185,7 +185,7 @@ CXXFLAGS := $(ARCHOPTIMIZATION) $(ARCHCXXFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES)
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__ AFLAGS := $(CFLAGS) -D__ASSEMBLY__
ifneq ($(CONFIG_HOST_MACOS),y) ifeq ($(CONFIG_HOST_LINUX),y)
LDLINKFLAGS += -z noexecstack LDLINKFLAGS += -z noexecstack
endif endif