aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-04-26 12:59:35 -0700
committerpx4dev <px4@purgatory.org>2013-04-26 12:59:35 -0700
commitde412b6467378ea5d4e61928f5795f309012a081 (patch)
tree6de81dd00930b792786f77aa06090be6e639bf4e
parentff15efb9c91540303622c3f9c48e22bbc9488ae0 (diff)
downloadpx4-firmware-de412b6467378ea5d4e61928f5795f309012a081.tar.gz
px4-firmware-de412b6467378ea5d4e61928f5795f309012a081.tar.bz2
px4-firmware-de412b6467378ea5d4e61928f5795f309012a081.zip
Pass -g to the link phase for PX4IO the same way we do for FMU
-rw-r--r--nuttx/configs/px4io/common/Make.defs3
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/configs/px4io/common/Make.defs b/nuttx/configs/px4io/common/Make.defs
index 4958f7092..7f782b5b2 100644
--- a/nuttx/configs/px4io/common/Make.defs
+++ b/nuttx/configs/px4io/common/Make.defs
@@ -112,7 +112,6 @@ ARCHOPTIMIZATION = $(MAXOPTIMIZATION) \
ifeq ("${CONFIG_DEBUG_SYMBOLS}","y")
ARCHOPTIMIZATION += -g
-ARCHSCRIPT += -g
endif
ARCHCFLAGS = -std=gnu99
@@ -145,7 +144,7 @@ ARCHDEFINES =
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
# this seems to be the only way to add linker flags
-ARCHSCRIPT += --warn-common \
+EXTRA_LIBS += --warn-common \
--gc-sections
CFLAGS = $(ARCHCFLAGS) $(ARCHCWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(INSTRUMENTATIONDEFINES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe -fno-common