mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +08:00
8238e4ddfa
The CMakeLists.txt first tries FindLuaJIT.cmake which uses NO_DEFAULT_PATH with hardcoded host paths, so it always fails in cross-compilation. The fallback find_package(Lua REQUIRED) may also fail to find a flat sysroot layout where lua.h lives at /usr/include/lua.h rather than a versioned subdirectory. Explicitly pass LUA_INCLUDE_DIR and LUA_LIBRARY to CMake to bypass both finders, and depend on +liblua (the library package) instead of +lua to ensure Build/InstallDev runs and Lua headers are present in the staging directory before this package builds. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>