shithub: lu9-lua

Download patch

ref: a1ccc9baa07a2c23123b27e0eb8733b42126d4b3
parent: 2dece7c3384b4e3b0dbd1b25879c053209072e92
author: kvik <kvik@a-b.xyz>
date: Sun Feb 7 10:02:02 EST 2021

luaconf: configure module path

--- a/luaconf.h
+++ b/luaconf.h
@@ -212,20 +212,19 @@
 
 #else			/* }{ */
 
-#define LUA_ROOT	"/usr/local/"
-#define LUA_LDIR	LUA_ROOT "share/lua/" LUA_VDIR "/"
-#define LUA_CDIR	LUA_ROOT "lib/lua/" LUA_VDIR "/"
+#define LUA_ROOT	"/sys/lib/"
+#define LUA_LDIR	LUA_ROOT "lua/" LUA_VDIR "/"
+#define LUA_CDIR	""
 
 #if !defined(LUA_PATH_DEFAULT)
 #define LUA_PATH_DEFAULT  \
 		LUA_LDIR"?.lua;"  LUA_LDIR"?/init.lua;" \
-		LUA_CDIR"?.lua;"  LUA_CDIR"?/init.lua;" \
 		"./?.lua;" "./?/init.lua"
 #endif
 
 #if !defined(LUA_CPATH_DEFAULT)
 #define LUA_CPATH_DEFAULT \
-		LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
+		""
 #endif
 
 #endif			/* } */