Fix the libdir settings

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua53?expand=0&rev=19
This commit is contained in:
Tomáš Chvátal 2017-07-13 17:57:42 +00:00 committed by Git OBS Bridge
parent 7c34210c94
commit c41dfb2844

View File

@ -150,15 +150,12 @@ Index: lua-5.3.4/src/luaconf.h
=================================================================== ===================================================================
--- lua-5.3.4.orig/src/luaconf.h --- lua-5.3.4.orig/src/luaconf.h
+++ lua-5.3.4/src/luaconf.h +++ lua-5.3.4/src/luaconf.h
@@ -200,9 +200,9 @@ @@ -200,7 +200,7 @@
#else /* }{ */ #else /* }{ */
-#define LUA_ROOT "/usr/local/" -#define LUA_ROOT "/usr/local/"
+#define LUA_ROOT "/usr/" +#define LUA_ROOT "/usr/"
#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
-#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
+#define LUA_CDIR LUA_ROOT "LIBDIR/lua/" LUA_VDIR "/"
#define LUA_PATH_DEFAULT \ #define LUA_PATH_DEFAULT \
LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \