lua-openssl: fix CMake Lua detection in build
authorAlexandru Ardelean <redacted>
Tue, 28 Apr 2026 05:40:36 +0000 (08:40 +0300)
committerAlexandru Ardelean <redacted>
Thu, 30 Apr 2026 14:42:26 +0000 (17:42 +0300)
commit8238e4ddfa37ce29ed78997c311eb85eca11eca0
tree380d8a3a818aba2efc4ecad2ec1d419bf5c6b19b
parente0669cb1a8950fcdc50d46bf4e2683f3509c1abf
lua-openssl: fix CMake Lua detection in build

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 <redacted>
lang/lua/lua-openssl/Makefile
git clone https://git.99rst.org/PROJECT