[vlc-devel] [PATCH] contrib: lua: remove the cross compiler environment when compiling native luac

Steve Lhomme robux4 at ycbcr.xyz
Wed Jan 29 12:22:16 CET 2020


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

diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index 309b9940fe5..ca6c207ba32 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -94,6 +94,11 @@ LUACVARS=CPPFLAGS="-DLUA_DL_DLL"
 endif
 endif
 
+ifdef HAVE_CROSS_COMPILE
+# Cancel the special environment for the host
+LUACVARS+=CFLAGS="" CPPFLAGS="" LDFLAGS=""
+endif
+
 luac: lua-$(LUA_VERSION).tar.gz .sum-luac
 	# DO NOT use the same intermediate directory as the lua target
 	rm -Rf -- $@-$(LUA_VERSION) $@
-- 
2.17.1



More information about the vlc-devel mailing list