notaz.gp2x.de
/
megadrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
testpico: adjust for gcc12
[megadrive.git]
/
testpico
/
Makefile
diff --git
a/testpico/Makefile
b/testpico/Makefile
index
b8c7988
..
4ee38fd
100644
(file)
--- a/
testpico/Makefile
+++ b/
testpico/Makefile
@@
-16,6
+16,10
@@
CFLAGS += -Wall -g -O2 -m68000 -fomit-frame-pointer
LDLIBS_LIBGCC := $(shell $(CC) -print-file-name=libgcc.a)
LDLIBS += $(LDLIBS_LIBGCC)
LDLIBS_LIBGCC := $(shell $(CC) -print-file-name=libgcc.a)
LDLIBS += $(LDLIBS_LIBGCC)
+ifeq ($(shell m68k-elf-gcc -dD -E -c - --param=min-pagesize=0 < /dev/null > /dev/null 2>&1 && echo ok),ok)
+CFLAGS += --param=min-pagesize=0
+endif
+
SUFFIX := $(shell git describe --always --dirty)
ifdef PICO
CFLAGS += -DPICO
SUFFIX := $(shell git describe --always --dirty)
ifdef PICO
CFLAGS += -DPICO