summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-09 18:17:37 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-09 18:17:37 -0400
commit2b9599035cf2da613869a4db10ac236a49fc5e4c (patch)
treedcaa0fc0eb2f71305bd37ad56cb799b541ece592
parentdacfbade1476d79bf7484b8817592d61ba62ee2f (diff)
global: Compile the entire codebase with `-sym on`
Just like with `-inline none`, I'm starting to realize more, and more that they built it with `-sym on` too.
-rw-r--r--Makefile3
-rw-r--r--context.h2
-rw-r--r--include/pso/TProtocol.h2
-rw-r--r--src/pso/TProtocol.cpp2
4 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fd839a4..c5cde09 100644
--- a/Makefile
+++ b/Makefile
@@ -45,10 +45,9 @@ include obj_files.mk
# This is a hack, and should be removed once we make separate repos for
# all the support libraries (such as the Dolphin SDK, MSL, and MetroTRK).
-$(BUILD_DIR)/src/pso/%.o: DIR_UNIQUE_CFLAGS := -inline none
+$(BUILD_DIR)/src/pso/%.o: DIR_UNIQUE_CFLAGS := -inline none -sym on
# File specific flags.
-$(BUILD_DIR)/src/pso/TObject.o: FILE_UNIQUE_CFLAGS := -sym on
ALL_DIRS := $(sort $(dir $(O_FILES)))
diff --git a/context.h b/context.h
index 12567f0..0444aee 100644
--- a/context.h
+++ b/context.h
@@ -1277,7 +1277,7 @@ public:
virtual void run_task();
virtual short send(u8 *data, size_t size);
- void some_stub() {};
+ void some_stub();
int handle_command(struct packet *pkt);
void parse_packet();
diff --git a/include/pso/TProtocol.h b/include/pso/TProtocol.h
index 628ee7f..c224c5d 100644
--- a/include/pso/TProtocol.h
+++ b/include/pso/TProtocol.h
@@ -150,7 +150,7 @@ public:
virtual void run_task();
virtual short send(u8 *data, size_t size);
- void some_stub() {};
+ void some_stub();
int handle_command(struct packet *pkt);
void parse_packet();
diff --git a/src/pso/TProtocol.cpp b/src/pso/TProtocol.cpp
index a1462b9..58a7374 100644
--- a/src/pso/TProtocol.cpp
+++ b/src/pso/TProtocol.cpp
@@ -247,6 +247,8 @@ void TProtocol::run_task() {
}
}
+void TProtocol::some_stub() {}
+
TProtocol::~TProtocol() {
}