fix LUACOPT when cross compiling for WIN32
This commit is contained in:
parent
2639dec301
commit
5865be3383
@ -360,12 +360,16 @@ endif
|
|||||||
ifeq ($(NOLUA),1)
|
ifeq ($(NOLUA),1)
|
||||||
LUACOPT =
|
LUACOPT =
|
||||||
LUALOPT =
|
LUALOPT =
|
||||||
|
else
|
||||||
|
ifdef WIN32CROSS
|
||||||
|
LUACOPT = -I../3rdparty/usr/include
|
||||||
else
|
else
|
||||||
LUAPKG := $(shell for p in lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua ; do pkg-config --exists $$p && echo $$p && break ; done)
|
LUAPKG := $(shell for p in lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua ; do pkg-config --exists $$p && echo $$p && break ; done)
|
||||||
LUACOPT = $(shell pkg-config $(LUAPKG) --cflags)
|
LUACOPT = $(shell pkg-config $(LUAPKG) --cflags)
|
||||||
LUALOPT = $(shell pkg-config $(LUAPKG) --libs)
|
LUALOPT = $(shell pkg-config $(LUAPKG) --libs)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# These can only be used under linux and maybe freebsd. They allow to compile for the gp2x or to create a windows binary
|
# These can only be used under linux and maybe freebsd. They allow to compile for the gp2x or to create a windows binary
|
||||||
ifdef WIN32CROSS
|
ifdef WIN32CROSS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user