Fix atari crossbuild with netsurf toolchains
This commit is contained in:
parent
2f7809baff
commit
ad2a93de9c
@ -619,13 +619,16 @@ endif
|
||||
FIX_FLAGS = $(ARCH)-atari-mint-flags
|
||||
FCLOPT =
|
||||
#LIBPNG_CONFIG = $(wildcard $(PREFIX)/bin/libpng12-config $(PREFIX)/bin/libpng14-config $(PREFIX)/bin/libpng16-config)
|
||||
LIBPNG_CONFIG ?= $(shell which ../3rdparty/usr-atari/bin/libpng-config)
|
||||
SDLCONFIG ?= $(shell which ../3rdparty/usr-atari/bin/sdl-config)
|
||||
LIBPNG_CONFIG ?= $(shell which ../3rdparty/usr-atari/bin/libpng-config || which $(PREFIX)/bin/libpng16-config)
|
||||
SDLCONFIG ?= $(shell which ../3rdparty/usr-atari/bin/sdl-config || which $(PREFIX)/bin/sdl-config)
|
||||
COPT = -W -Wall
|
||||
COPT += $(MCPU) -fomit-frame-pointer -std=c99 -Wdeclaration-after-statement
|
||||
COPT += -D__MINT__ -ffast-math -O$(OPTIM)
|
||||
# -I$(PREFIX)/include
|
||||
ifneq ($(wildcard ../3rdparty/usr-atari/include),)
|
||||
COPT += -I../3rdparty/usr-atari/include
|
||||
else
|
||||
COPT += -I$(PREFIX)/include
|
||||
endif
|
||||
COPT += $(shell $(LIBPNG_CONFIG) --cflags)
|
||||
COPT += $(shell $(SDLCONFIG) --cflags)
|
||||
COPT += $(JOYCOPT) $(LUACOPT)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user