Files
MINGW-packages/mingw-w64-lua-lgi/001-lua5.1.patch
2016-11-09 18:04:43 +03:00

28 lines
816 B
Diff

diff -rup lgi-0.9.1/lgi/lgi.h lgi-0.9.1-ricky/lgi/lgi.h
--- lgi-0.9.1/lgi/lgi.h 2016-05-28 03:56:36.000000000 +0800
+++ lgi-0.9.1-ricky/lgi/lgi.h 2016-10-26 21:13:00.262476600 +0800
@@ -8,8 +8,8 @@
#define G_LOG_DOMAIN "Lgi"
-#include <lua.h>
-#include <lauxlib.h>
+#include <lua5.1/lua.h>
+#include <lua5.1/lauxlib.h>
/* Lua 5.2 compatibility stuff. */
#if LUA_VERSION_NUM >= 502
diff -rup lgi-0.9.1/lgi/Makefile lgi-0.9.1-ricky/lgi/Makefile
--- lgi-0.9.1/lgi/Makefile 2016-05-28 03:56:36.000000000 +0800
+++ lgi-0.9.1-ricky/lgi/Makefile 2016-10-26 21:14:47.106118700 +0800
@@ -19,7 +19,7 @@ VERSION_FILE = version.lua
ifneq ($(filter cygwin% msys% mingw%, $(HOST_OS)),)
CORE = corelgilua51.dll
LIBFLAG = -shared
-LIBS += -llua
+LIBS += -llua5.1
else
ifeq ($(HOST_OS),darwin)
CORE = corelgilua51.so