This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b5d640acc5 fix Cygwin/MSYS2  ld: unrecognized option '-z'
b5d640acc5 is described below

commit b5d640acc5b3b1ea6242a7e90ad8897871bd7cab
Author: simbit18 <101105604+simbi...@users.noreply.github.com>
AuthorDate: Tue Oct 17 15:57:26 2023 +0200

    fix Cygwin/MSYS2  ld: unrecognized option '-z'
    
    The '-z' options don't supported for Windows versions of ld.
---
 boards/sim/sim/sim/scripts/Make.defs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boards/sim/sim/sim/scripts/Make.defs 
b/boards/sim/sim/sim/scripts/Make.defs
index fcaae3c420..01f9e81b48 100644
--- a/boards/sim/sim/sim/scripts/Make.defs
+++ b/boards/sim/sim/sim/scripts/Make.defs
@@ -185,7 +185,7 @@ CXXFLAGS := $(ARCHOPTIMIZATION) $(ARCHCXXFLAGS) 
$(ARCHXXINCLUDES) $(ARCHDEFINES)
 CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
 AFLAGS := $(CFLAGS) -D__ASSEMBLY__
 
-ifneq ($(CONFIG_HOST_MACOS),y)
+ifeq ($(CONFIG_HOST_LINUX),y)
   LDLINKFLAGS += -z noexecstack
 endif
 

Reply via email to