summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-11-10 23:09:17 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-11-10 23:09:17 +0100
commit09910de8ee2e62a965aa34b5cd7514a59061c3a9 (patch)
tree85d7a62a9695e0e4ef351231b082b562f273c1f4
parent59e38e90a301c4a3a34b0b291d6e883f4e8f67c4 (diff)
Add debugging symbols to assembly files
-rw-r--r--Makefile.cfg3
1 files changed, 2 insertions, 1 deletions
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