From 86b19026e104ea86ef1e90b500342d25bea91187 Mon Sep 17 00:00:00 2001 From: Victor Ananyev Date: Sun, 23 Jan 2022 13:45:28 +0100 Subject: [PATCH] support various lua executable formats --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8eadf7a..76e9521 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ ifeq ($(MPACK_LUA_VERSION_NOPATCH),5.3) CFLAGS += -DLUA_C89_NUMBERS endif -LUA_IMPL ?= lua-$(MPACK_LUA_VERSION_NOPATCH) +LUA_IMPL ?= $(shell for p in lua$(MPACK_LUA_VERSION_NOPATCH) lua-$(MPACK_LUA_VERSION_NOPATCH) ; do $(PKG_CONFIG) --exists $$p && echo $$p && break ; done) LUA_INCLUDE ?= $(shell $(PKG_CONFIG) --cflags $(LUA_IMPL) 2>/dev/null || echo "-I/usr/include/lua$(MPACK_LUA_VERSION_NOPATCH)") INCLUDES = $(LUA_INCLUDE) LIBS =