You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/01/29 08:26:16 UTC
[incubator-nuttx] 08/12: Revert "sim: Remove -g from
LDFLAGS/LDLINKFLAGS"
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch revert-179-osx-sim
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 8fa4617efe28c318f4bd6110deebdc933c464083
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Wed Jan 29 09:26:02 2020 +0100
Revert "sim: Remove -g from LDFLAGS/LDLINKFLAGS"
This reverts commit b1678d0e2616986fe4d813b032c312939d34ce50.
---
boards/sim/sim/sim/configs/cxxtest/Make.defs | 2 ++
boards/sim/sim/sim/configs/nsh2/Make.defs | 2 ++
boards/sim/sim/sim/scripts/Make.defs | 2 ++
3 files changed, 6 insertions(+)
diff --git a/boards/sim/sim/sim/configs/cxxtest/Make.defs b/boards/sim/sim/sim/configs/cxxtest/Make.defs
index 53fe2d5..ef5fcad 100644
--- a/boards/sim/sim/sim/configs/cxxtest/Make.defs
+++ b/boards/sim/sim/sim/configs/cxxtest/Make.defs
@@ -116,7 +116,9 @@ EXTRA_LIBPATHS = -L "${shell dirname "$(LIBSUPXX)"}"
EXTRA_LIBS = -lsupc++
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
+ LDLINKFLAGS += -g
CCLINKFLAGS += -g
+ LDFLAGS += -g
endif
ifeq ($(CONFIG_SIM_M32),y)
diff --git a/boards/sim/sim/sim/configs/nsh2/Make.defs b/boards/sim/sim/sim/configs/nsh2/Make.defs
index b00ada0..1fefa4d 100644
--- a/boards/sim/sim/sim/configs/nsh2/Make.defs
+++ b/boards/sim/sim/sim/configs/nsh2/Make.defs
@@ -108,7 +108,9 @@ CCLINKFLAGS = $(ARCHSCRIPT) # Link flags used with $(CC)
LDFLAGS = $(ARCHSCRIPT) # For backward compatibility, same as CCLINKFLAGS
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
+ LDLINKFLAGS += -g
CCLINKFLAGS += -g
+ LDFLAGS += -g
endif
ifeq ($(CONFIG_SIM_M32),y)
diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs
index 9eb3d13..4558350 100644
--- a/boards/sim/sim/sim/scripts/Make.defs
+++ b/boards/sim/sim/sim/scripts/Make.defs
@@ -115,7 +115,9 @@ CCLINKFLAGS = $(ARCHSCRIPT) # Link flags used with $(CC)
LDFLAGS = $(ARCHSCRIPT) # For backward compatibility, same as CCLINKFLAGS
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
+ LDLINKFLAGS += -g
CCLINKFLAGS += -g
+ LDFLAGS += -g
endif
ifeq ($(CONFIG_SIM_M32),y)