mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
(Clang) Linker fix
This commit is contained in:
parent
1c67828540
commit
f9020f359c
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -3,8 +3,10 @@ CFLAGS += -Wall -ggdb -falign-functions=2
|
||||||
CFLAGS += -I.
|
CFLAGS += -I.
|
||||||
ifndef DEBUG
|
ifndef DEBUG
|
||||||
CFLAGS += -O2 -DNDEBUG -ffunction-sections
|
CFLAGS += -O2 -DNDEBUG -ffunction-sections
|
||||||
|
ifeq ($(findstring clang,$(CC)),)
|
||||||
LDFLAGS += -Wl,--gc-sections
|
LDFLAGS += -Wl,--gc-sections
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
#CFLAGS += -DEVT_LOG
|
#CFLAGS += -DEVT_LOG
|
||||||
#CFLAGS += -DDRC_CMP
|
#CFLAGS += -DDRC_CMP
|
||||||
#cpu_cmp = 1
|
#cpu_cmp = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue