You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/02/26 07:05:02 UTC

[incubator-nuttx-apps] 01/02: Revert "Remove libapps.a from LDLIBS"

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 9d59f5e524059a24f48cfbe798cf3de0259cdbc5
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Feb 26 14:08:40 2020 +0900

    Revert "Remove libapps.a from LDLIBS"
    
    It was necessary for PROTECTED build.
    
    This reverts commit 4ee39e208048f075860179a0a2b60c3a651cf16e.
---
 Make.defs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Make.defs b/Make.defs
index dcc6402..505af7d 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