diff --git a/Application.mk b/Application.mk index d592d4dbd..a0371cb86 100644 --- a/Application.mk +++ b/Application.mk @@ -59,10 +59,14 @@ else CWD = $(CURDIR) endif -ifeq ($(CONFIG_CYGWIN_WINTOOL),y) - LDLIBS += "${shell cygpath -w $(BIN)}" -else - LDLIBS += $(BIN) +# Add the static application library to the linked libraries. Don't do this +# with CONFIG_BUILD_KERNEL as there is no static app library +ifneq ($(CONFIG_BUILD_KERNEL),y) + ifeq ($(CONFIG_CYGWIN_WINTOOL),y) + LDLIBS += "${shell cygpath -w $(BIN)}" + else + LDLIBS += $(BIN) + endif endif SUFFIX = $(subst $(DELIM),.,$(CWD))