From 09910de8ee2e62a965aa34b5cd7514a59061c3a9 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 10 Nov 2020 23:09:17 +0100 Subject: [PATCH] Add debugging symbols to assembly files --- Makefile.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.cfg b/Makefile.cfg index c9135a6..28a0cba 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -47,7 +47,7 @@ CC = mipsel-unknown-elf-gcc CXX = mipsel-unknown-elf-g++ # CFLAGS and CXXFLAGS - do not change if you do not know what you are doing!!! INCLUDEDIR = $(SRCROOT)/libpsx/include/ -AFLAGS = -I $(INCLUDEDIR) -G0 -msoft-float +AFLAGS = -I $(INCLUDEDIR) -msoft-float CFLAGS = -D__PSXSDK__ -fsigned-char -fno-strict-overflow -I$(INCLUDEDIR) -fno-builtin -mno-gpopt -nostdlib -msoft-float -Wall -Werror CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-use-cxa-atexit AR = mipsel-unknown-elf-ar @@ -58,6 +58,7 @@ CPP = mipsel-unknown-elf-gcc OBJCOPY = mipsel-unknown-elf-objcopy # Uncomment the lines below if you want to have a debug build +AFLAGS += -g3 CFLAGS += -g3 -DPSXSDK_DEBUG CXXFLAGS += -g3 -DPSXSDK_DEBUG