Files
MINGW-packages/mingw-w64-lua/searchpath.patch
2015-04-07 11:54:17 +02:00

15 lines
627 B
Diff

--- src/luaconf.h.orig 2015-04-07 11:28:32.057058000 +0200
+++ src/luaconf.h 2015-04-07 11:31:03.305023800 +0200
@@ -160,8 +160,9 @@
** In Windows, any exclamation mark ('!') in the path is replaced by the
** path of the directory of the executable file of the current process.
*/
-#define LUA_LDIR "!\\lua\\"
-#define LUA_CDIR "!\\"
+#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "\\"
+#define LUA_LDIR "!\\..\\share\\lua\\" LUA_VDIR
+#define LUA_CDIR "!\\..\\lib\\lua\\" LUA_VDIR
#define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\"
#define LUA_PATH_DEFAULT \
LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \