Skip to content

Commit

Permalink
luajit: patch out library from pkg-config entry when not used (#1930)
Browse files Browse the repository at this point in the history
To prevent Lua modules from linking with it.
  • Loading branch information
benoit-pierre authored Sep 8, 2024
1 parent 7e20711 commit 0efd201
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions thirdparty/luajit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ endif()

if(USE_LUAJIT_LIB)
append_shared_lib_install_commands(INSTALL_CMD luajit)
else()
# Prevent LUA modules from linking with the LuaJIT library.
list(APPEND INSTALL_CMD COMMAND ${ISED} "s|-l\${libname}||" ${STAGING_DIR}/lib/pkgconfig/luajit.pc)
endif()

append_tree_install_commands(INSTALL_CMD src/jit jit)
Expand Down

0 comments on commit 0efd201

Please sign in to comment.