diff --git a/Make.defs b/Make.defs index dcc640268..505af7d44 100644 --- a/Make.defs +++ b/Make.defs @@ -152,3 +152,11 @@ endif 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