[vlc-commits] contribs: fix cross-compilation of lua

Pierre Ynard git at videolan.org
Sun May 8 04:01:48 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun May  8 04:01:18 2011 +0200| [5e1fd0ff7c7eb8ba872430d33ff42e90fcbc290f] | committer: Pierre Ynard

contribs: fix cross-compilation of lua

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

 extras/contrib/src/contrib-src.mak |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extras/contrib/src/contrib-src.mak b/extras/contrib/src/contrib-src.mak
index 3586d52..8a96f69 100644
--- a/extras/contrib/src/contrib-src.mak
+++ b/extras/contrib/src/contrib-src.mak
@@ -562,7 +562,7 @@ endif
 
 .lua: lua
 ifdef HAVE_WIN32
-	( cd $< && sed -i.orig 's/lua luac/lua.exe/' Makefile && cd src && sed -i.orig 's/CC=/#CC=/' Makefile && sed -i 's/strip/$(STRIP)/' Makefile && cd ../..)
+	( cd $< && sed -i.orig 's/lua luac/lua.exe/' Makefile && cd src && sed -i.orig 's/CC=/#CC=/' Makefile && sed -i 's/=strip/=$(STRIP)/;s/= ranlib/= $(RANLIB)/' Makefile && cd ../..)
 	(cd $<&& $(HOSTCC) make $(LUA_MAKEPLATEFORM-1)&& cd src&& $(HOSTCC) make liblua.a&& cd ..&&$(HOSTCC) make install INSTALL_TOP=$(PREFIX)&& $(RANLIB) $(PREFIX)/lib/liblua.a)
 	(cd $<&& sed -i.orig 's at prefix= /usr/local at prefix= $(PREFIX)@' etc/lua.pc&& mkdir -p $(PREFIX)/lib/pkgconfig&& cp etc/lua.pc $(PREFIX)/lib/pkgconfig)
 else



More information about the vlc-commits mailing list