From: Tim 'mithro' Ansell Date: Mon, 25 Sep 2017 19:33:58 +0000 (+1000) Subject: common: Compile with debugging symbols on. X-Git-Tag: 24jan2021_ls180~1802^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8152673d18bcc068b22356d3ff19ea3ed7f9ad10;p=litex.git common: Compile with debugging symbols on. Debugging symbols are useful when using GDB :-) --- diff --git a/litex/soc/software/common.mak b/litex/soc/software/common.mak index 7ef85aae..11e8fc38 100644 --- a/litex/soc/software/common.mak +++ b/litex/soc/software/common.mak @@ -42,7 +42,7 @@ DEPFLAGS += -MD -MP # Toolchain options # INCLUDES = -I$(SOC_DIRECTORY)/software/include/base -I$(SOC_DIRECTORY)/software/include -I$(SOC_DIRECTORY)/common -I$(BUILDINC_DIRECTORY) -COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -fomit-frame-pointer -Wall -fno-builtin -nostdinc $(INCLUDES) +COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc $(INCLUDES) CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes CXXFLAGS = $(COMMONFLAGS) -std=c++11 -I$(SOC_DIRECTORY)/software/include/basec++ -fexceptions -fno-rtti -ffreestanding LDFLAGS = -nostdlib -nodefaultlibs -L$(BUILDINC_DIRECTORY)