You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/04/05 16:56:07 UTC

[GitHub] [incubator-nuttx] v01d opened a new issue #3367: WINDOWS-BASED TOOLCHAIN BUILD

v01d opened a new issue #3367:
URL: https://github.com/apache/incubator-nuttx/issues/3367


   ```
     Description: Windows build issue.  Some of the configurations that use NXFLAT have
                  the linker script specified like this:
   
                  NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-gotoff.ld -no-check-sections
   
                  That will not work for windows-based tools because they require Windows
                  style paths.  The solution is to do something like this:
   
                  if ($(CONFIG_CYGWIN_WINTOOL),y)
                    NXFLATLDSCRIPT=${cygpath -w $(TOPDIR)/binfmt/libnxflat/gnu-nxflat-gotoff.ld}
                  else
                    NXFLATLDSCRIPT=$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-gotoff.ld
                  endif
   
                  Then use
   
                  NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T"$(NXFLATLDSCRIPT)" -no-check-sections
   
     Status:      Open
     Priority:    There are too many references like the above.  They will have
                  to get fixed as needed for Windows native tool builds.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org