| From 0d04d12861118bd21a8568babd3a26116b6b11c4 Mon Sep 17 00:00:00 2001 |
| From: Ray Donnelly <mingw.android@gmail.com> |
| Date: Mon, 15 Feb 2021 17:44:10 +0100 |
| Subject: [PATCH 3/3] Fix LUA_*DIR for MSYS2 FHS layout |
| |
| --- |
| src/luaconf.h | 8 ++++---- |
| 1 file changed, 4 insertions(+), 4 deletions(-) |
| |
| diff --git a/src/luaconf.h b/src/luaconf.h |
| index d9cf18c..c4b04c3 100644 |
| --- a/src/luaconf.h |
| +++ b/src/luaconf.h |
| @@ -185,14 +185,14 @@ |
| ** non-conventional directories. |
| */ |
| |
| -#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR |
| #if defined(_WIN32) /* { */ |
| /* |
| ** 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 "\\" |
| |
| #if !defined(LUA_PATH_DEFAULT) |
| @@ -211,7 +211,7 @@ |
| #endif |
| |
| #else /* }{ */ |
| - |
| +#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR |
| #define LUA_ROOT "/usr/local/" |
| #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" |
| #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" |
| -- |
| 2.30.0.windows.2 |
| |