mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
make, improve detection of gcc
This commit is contained in:
parent
61d76999d7
commit
9511ffd153
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -34,10 +34,11 @@ gperf ?= 0
|
||||||
|
|
||||||
ifneq ("$(PLATFORM)", "libretro")
|
ifneq ("$(PLATFORM)", "libretro")
|
||||||
CFLAGS += -Wall -g
|
CFLAGS += -Wall -g
|
||||||
ifneq ($(findstring gcc,$(CC)),)
|
ifneq ($(findstring gcc,$(shell $(CC) -v 2>&1)),)
|
||||||
CFLAGS += -ffunction-sections -fdata-sections
|
CFLAGS += -ffunction-sections -fdata-sections
|
||||||
LDFLAGS += -Wl,--gc-sections
|
LDFLAGS += -Wl,--gc-sections
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq "$(DEBUG)" "0"
|
ifeq "$(DEBUG)" "0"
|
||||||
CFLAGS += -O3 -DNDEBUG
|
CFLAGS += -O3 -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue