Skip to content

Commit f6ecdaf

Browse files
committed
Perform gc-sections even in debug
1 parent 13971b3 commit f6ecdaf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ee/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ EE_CFLAGS += -Werror
1717
# This is to enable the debug mode into ps2link
1818
ifeq ($(DEBUG),1)
1919
EE_CFLAGS += -DDEBUG -g
20-
else
20+
endif
2121
EE_CFLAGS += -Os
2222
EE_CFLAGS += -fdata-sections -ffunction-sections
23-
endif
2423

2524
ifeq ($(DEBUG),1)
2625
EE_LDFLAGS += -g
2726
else
2827
EE_LDFLAGS += -s
29-
EE_LDFLAGS += -Wl,--gc-sections
3028
endif
29+
EE_LDFLAGS += -Wl,--gc-sections
3130
EE_LDFLAGS += -Wl,-Map,ps2link.map
3231

3332
# This is to read the closest tag version

0 commit comments

Comments
 (0)