From 5919ab9bae2d7f376251e5788df5d19e4d1ec812 Mon Sep 17 00:00:00 2001 From: Dustin Holden Date: Thu, 15 Aug 2024 10:18:29 -0400 Subject: [PATCH] Optimize build by removing unused symbols --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 50a20f5..e8dfb6f 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,14 @@ CFLAGS += \ -I$(CURDIR)/source \ -DWIN32 +# Optimize build by removing unused symbols +CFLAGS += \ + -ffunction-sections \ + -fdata-sections +CXXFLAGS += \ + -ffunction-sections \ + -fdata-sections + include $(NXDK_DIR)/Makefile $(OBJS): $(CURDIR)/source/resources.obj