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 2020/08/30 19:28:58 UTC

[GitHub] [incubator-nuttx] patacongo edited a comment on issue #1672: Cygwin Build Broken

patacongo edited a comment on issue #1672:
URL: https://github.com/apache/incubator-nuttx/issues/1672#issuecomment-683459803


   I believe the the root cause of the problem is this:
   
   1. When a Windows native tool is used (ie., CONFIG_CYGWIN_TOOL=y), then the compiler will return a Windows style path and not a POSIX compatible path
   2. the make 'dir' command expects a POSIX style path.
   
   So the solution might be to use cygpath to convert the windows path to a Windows path like:
   
       EXTRA_LIBS += -lgcc
       LIBGCC_PATH = ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libgcc.a}
   
       ifeq ($(CONFIG_CYWGIN_WINTOOL),y)
         EXTRA_LIBPATHS += -L "${dir $(shell cygpath -u $(LIBGCC_PATH)}"
       else
         EXTRA_LIBPATHS += -L "${dir $(LIBGCC_PATH)}"
       endif
   


----------------------------------------------------------------
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