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

Steve Lhomme git at videolan.org
Fri Jan 31 11:34:24 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 29 12:21:56 2020 +0100| [4072f0646998064c0acb2981f77492e2e50cbf48] | committer: Steve Lhomme

contrib: lua: remove the cross compiler environment when compiling native luac

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4072f0646998064c0acb2981f77492e2e50cbf48
---

 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 309b9940fe..d0ce491c91 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
+# Remove the cross-compiler environment for the native compiler
+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) $@



More information about the vlc-commits mailing list