Skip to content

Commit

Permalink
Improve linking
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtrujy committed Dec 15, 2023
1 parent 80fa338 commit b21a788
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ EE_OBJS += $(FRONTEND_OBJS) $(GFX_OBJS) $(AUDIO_OBJS) $(MISC_OBJS) $(EECORE_OBJS
EE_OBJS := $(EE_OBJS:%=$(EE_OBJS_DIR)%)
EE_DEPS = $($(filter %.o,$(EE_OBJS)):%.o=%.d)

# To help linking getting rid off unused functions and data
EE_CFLAGS += -fdata-sections -ffunction-sections -flto
EE_LDFLAGS += -fdata-sections -ffunction-sections -flto -Wl,--gc-sections

.SILENT:

.PHONY: all release debug iopcore_debug eesio_debug ingame_debug deci2_debug clean rebuild pc_tools pc_tools_win32 oplversion format format-check ps2sdk-not-setup download_lng download_lwNBD languages
Expand Down

0 comments on commit b21a788

Please sign in to comment.