notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d7699
)
make, improve detection of gcc
author
kub
<derkub@gmail.com>
Sat, 5 Dec 2020 14:11:06 +0000
(15:11 +0100)
committer
kub
<derkub@gmail.com>
Sat, 5 Dec 2020 21:39:08 +0000
(22:39 +0100)
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
index
567fbfc
..
b51199b
100644
(file)
--- a/
Makefile
+++ b/
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