mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-01-19 22:34:52 +01:00
make, improve detection of gcc
This commit is contained in:
parent
61d76999d7
commit
9511ffd153
3
Makefile
3
Makefile
@ -34,10 +34,11 @@ gperf ?= 0
|
||||
|
||||
ifneq ("$(PLATFORM)", "libretro")
|
||||
CFLAGS += -Wall -g
|
||||
ifneq ($(findstring gcc,$(CC)),)
|
||||
ifneq ($(findstring gcc,$(shell $(CC) -v 2>&1)),)
|
||||
CFLAGS += -ffunction-sections -fdata-sections
|
||||
LDFLAGS += -Wl,--gc-sections
|
||||
endif
|
||||
|
||||
ifeq "$(DEBUG)" "0"
|
||||
CFLAGS += -O3 -DNDEBUG
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user