Skip to content

Commit

Permalink
Merge pull request #1131 from ps2homebrew/improve_linking
Browse files Browse the repository at this point in the history
Improve linking
  • Loading branch information
uyjulian authored Dec 15, 2023
2 parents 80fa338 + b21a788 commit d903dcd
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 d903dcd

Please sign in to comment.