diff --git a/patches/lua-5.1.5-disable_lua50_compat.patch b/patches/lua-5.1.5-disable_lua50_compat.patch new file mode 100644 index 0000000..494aa0e --- /dev/null +++ b/patches/lua-5.1.5-disable_lua50_compat.patch @@ -0,0 +1,14 @@ +--- lua-5.1.5/src/luaconf.h 2008-02-11 08:25:08.000000000 -0800 ++++ lua-5.1.5-patched/src/luaconf.h 2012-07-04 18:36:05.700067698 -0700 +@@ -757,6 +757,11 @@ + ** without modifying the main part of the file. + */ + ++#undef LUA_COMPAT_VARARG ++#undef LUA_COMPAT_MOD ++#undef LUA_COMPAT_LSTR ++#undef LUA_COMPAT_GFIND ++#undef LUA_COMPAT_OPENLIB + + + #endif diff --git a/patches/lua-5.1.5-makefile_install_fix.patch b/patches/lua-5.1.5-makefile_install_fix.patch new file mode 100644 index 0000000..570a8e0 --- /dev/null +++ b/patches/lua-5.1.5-makefile_install_fix.patch @@ -0,0 +1,23 @@ +--- lua-5.1.5/Makefile 2008-08-12 08:40:48.000000000 +0800 ++++ lua-5.1.5-patched/Makefile 2011-03-09 20:56:47.603422483 +0800 +@@ -22,14 +22,14 @@ + + # How to install. If your install program does not support "-p", then you + # may have to run ranlib on the installed liblua.a (do "make ranlib"). +-INSTALL= install -p +-INSTALL_EXEC= $(INSTALL) -m 0755 +-INSTALL_DATA= $(INSTALL) -m 0644 ++#INSTALL= install -p ++#INSTALL_EXEC= $(INSTALL) -m 0755 ++#INSTALL_DATA= $(INSTALL) -m 0644 + # + # If you don't have install you can use cp instead. +-# INSTALL= cp -p +-# INSTALL_EXEC= $(INSTALL) +-# INSTALL_DATA= $(INSTALL) ++INSTALL= cp -p ++INSTALL_EXEC= $(INSTALL) ++INSTALL_DATA= $(INSTALL) + + # Utilities. + MKDIR= mkdir -p