fix build with GP2XCROSS

This commit is contained in:
Thomas Bernard
2019-02-09 15:46:33 +01:00
parent fe5a9c3278
commit e278d0551c
3 changed files with 7 additions and 1 deletions

View File

@@ -508,7 +508,8 @@ endif
CC = /opt/open2x/gcc-4.1.1-glibc-2.3.6/bin/arm-open2x-linux-gcc
BIN = ../bin/grafx2.gpe
SDLCONFIG = /opt/open2x/gcc-4.1.1-glibc-2.3.6/bin/sdl-config
COPT = -W -Wall -Wdeclaration-after-statement -pedantic -std=c99 -static -g -O$(OPTIM)
COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -static -g -O$(OPTIM)
COPT += -D_XOPEN_SOURCE=500
COPT += -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
COPT += $(shell $(SDLCONFIG) --cflags)
COPT += -D__GP2X__ $(TTFCOPT) $(JOYCOPT) $(LUACOPT)