[vlc-devel] [PATCH] lua: build luac for the build, not the host

Rafaël Carré funman at videolan.org
Thu Feb 9 01:32:24 CET 2012


Assume gcc is the compiler

Calling 'luac' without the .exe suffix works on Windows, just not in cmd.exe
Tested in unix shell and Makefile
---
 contrib/src/lua/rules.mak |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index 765f4e2..84d4e29 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -61,4 +61,7 @@ ifdef HAVE_WIN32
 	mkdir -p -- "$(PREFIX)/lib/pkgconfig"
 	cp $</etc/lua.pc "$(PREFIX)/lib/pkgconfig/"
 endif
+ifdef HAVE_CROSS_COMPILE
+	make -C $</src clean luac CC=gcc && cp -f $</src/luac "$(PREFIX)/bin/luac"
+endif
 	touch $@
-- 
1.7.9



More information about the vlc-devel mailing list