Commit 12a27bac authored by damienf's avatar damienf

contribs: fix lua compile on cygwin/mingw/win32

parent 49c878c5
......@@ -573,7 +573,7 @@ lua: lua-$(LUA_VERSION).tar.gz
.lua: lua
ifdef HAVE_WIN32
( cd $<; sed -i.orig 's/lua luac/lua.exe/' Makefile ; cd src; sed -i.orig 's/gcc/$(CC)/' Makefile; cd ../..;)
( cd $<; sed -i.orig 's/lua luac/lua.exe/' Makefile ; cd src; sed -i.orig 's/CC=/#CC=/' Makefile; cd ../..;)
(cd $<; $(HOSTCC) make $(LUA_MAKEPLATEFORM); cd src; $(HOSTCC) make liblua.a; cd ..;$(HOSTCC) make install INSTALL_TOP=$(PREFIX))
else
(cd $<; $(HOSTCC) make $(LUA_MAKEPLATEFORM) && make install INSTALL_TOP=$(PREFIX))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment