Files
Khem Raj af8b6d6b2f sysdig: Use LuaJIT headers to match the linked LuaJIT library
csysdig fails to link when stock Lua is also present in the sysroot:

  ld.lld: error: undefined symbol: luaL_openselectedlibs
  >>> referenced by chisel.cpp:1190
  ld.lld: error: undefined symbol: lua_pcallk
  ld.lld: error: undefined symbol: lua_setglobal

sysdig's chisel code does #include "lua.h" and links against LuaJIT
(lua${JIT}), but the recipe-sysroot also carries stock Lua headers
(openembedded-core lua installs lua.h into ${includedir}). Those headers
win the include search over ${includedir}/luajit-2.1, so the chisel
objects are compiled against stock Lua while the binary links
libluajit-5.1.so. In Lua >= 5.4.4 luaL_openlibs is a macro for
luaL_openselectedlibs and lua_setglobal/lua_pcallk are real symbols,
none of which LuaJIT (a Lua 5.1 ABI) provides, hence the undefined
references. -DLUA_INCLUDE_DIR does not help: sysdig's luajit.cmake only
consults it in its stock-Lua fallback, not when it finds LuaJIT.

Prepend ${STAGING_INCDIR}/luajit-2.1 to CFLAGS/CXXFLAGS. These land in
CMAKE_CXX_FLAGS, which precede CMake's generated -I includes, so LuaJIT's
lua.h is found first and matches the linked library.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 00e7a91180)
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
2026-07-24 06:15:59 +05:30
..
2026-03-03 21:08:14 -08:00
2026-02-25 09:49:48 -08:00
2025-09-27 16:18:15 -07:00
2025-12-02 09:18:19 -08:00
2026-01-12 08:53:42 -08:00
2026-03-18 14:33:33 -07:00
2026-04-13 15:28:24 -07:00
2025-10-06 14:14:36 -07:00
2026-07-22 06:33:15 +05:30
2026-03-03 21:08:13 -08:00
2025-09-04 10:28:23 -07:00
2025-08-20 07:35:08 -07:00
2025-09-27 16:18:15 -07:00
2026-01-30 23:59:07 -08:00
2026-03-17 13:25:19 -07:00
2026-04-10 07:59:53 -07:00
2025-07-30 08:03:06 -07:00
2026-07-22 06:31:17 +05:30
2026-07-07 08:04:43 +05:30
2026-02-02 00:23:13 -08:00
2025-11-06 16:00:50 -08:00
2025-06-09 21:24:11 -07:00
2025-12-28 08:14:40 -08:00
2026-04-16 16:30:37 -07:00
2026-04-13 15:28:24 -07:00
2026-04-10 07:59:54 -07:00
2026-03-03 06:55:00 -08:00
2026-04-14 08:59:33 -07:00
2026-01-22 22:01:00 -08:00
2026-03-27 09:09:02 -07:00
2025-07-25 17:12:12 -07:00
2026-03-18 14:33:29 -07:00
2026-04-10 07:59:50 -07:00
2026-01-27 11:58:29 -08:00
2026-03-25 16:33:18 -07:00
2025-08-09 10:22:39 -07:00
2026-02-20 23:34:22 -08:00
2026-03-17 13:25:24 -07:00
2025-07-11 08:35:05 -07:00
2026-05-17 10:17:05 +05:30
2025-09-24 10:54:44 -07:00