[vlc-devel] [PATCH] contrib: lua: fix luac building on win32

Steve Lhomme robux4 at videolabs.io
Wed Aug 10 09:15:47 CEST 2016


---
 contrib/src/lua/rules.mak | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index 0030f49..6e183cc 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -74,6 +74,9 @@ endif
 
 LUAVARS=$(HOSTVARS) MYCFLAGS="$(CFLAGS)" MYLDFLAGS="$(LDFLAGS)"
 LUAVARS_PIC=$(HOSTVARS_PIC) MYCFLAGS="$(CFLAGS)" MYLDFLAGS="$(LDFLAGS)"
+ifdef HAVE_WIN32
+LUACVARS=CPPFLAGS="-DLUA_DL_DLL"
+endif
 
 .lua: lua
 	cd $< && $(LUAVARS_PIC) $(MAKE) $(LUA_TARGET)
@@ -103,7 +106,7 @@ luac: lua-$(LUA_VERSION).tar.gz .sum-luac
 	mv luac-$(LUA_VERSION) luac
 
 .luac: luac
-	cd $< && $(MAKE) generic
+	cd $< && $(LUACVARS) $(MAKE) generic
 	mkdir -p -- $(BUILDBINDIR)
 	install -m 0755 -s -- $</src/luac $(BUILDBINDIR)/$(HOST)-luac
 	touch $@
-- 
2.8.2



More information about the vlc-devel mailing list