From 57f99a6fb790d8c8fe4a70c6ee1cf0053ae8ffda Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 4 Dec 2019 11:01:43 -0600 Subject: [PATCH] Make.defs: When building MODULES under Cygwin, the path to libapps.a that is passed to the Windows linker must first be converted with cygpath. --- Make.defs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Make.defs b/Make.defs index bd2e1c56c..77b0c8275 100644 --- a/Make.defs +++ b/Make.defs @@ -150,5 +150,9 @@ CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"} CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"} ifneq ($(CONFIG_BUILD_KERNEL),y) +ifeq ($(WINTOOL),y) + LDLIBS ?= "${shell cygpath -w $(BIN)}" +else LDLIBS ?= $(BIN) endif +endif