[OpenWrt-Devel] [PATCH 1/1] libubox/lua/CMakeLists.txt: fix LUAPATH so it will use /usr/lib/ instead of /usr/local/lib/
Sergey Ponomarev
stokito at gmail.com
Thu Nov 29 10:20:08 EST 2018
Signed-off-by: Sergey Ponomarev <stokito at gmail.com>
---
lua/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt
index 34c9ab1..4a114f6 100644
--- a/lua/CMakeLists.txt
+++ b/lua/CMakeLists.txt
@@ -17,7 +17,7 @@ ENDIF(APPLE)
IF(NOT LUAPATH)
EXECUTE_PROCESS(
- COMMAND lua -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
+ COMMAND lua -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,9) == \"/usr/lib/\" then print(k) break end end"
OUTPUT_VARIABLE LUAPATH
RESULT_VARIABLE LUA_CHECK_RES
OUTPUT_STRIP_TRAILING_WHITESPACE
--
2.19.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list