Skip to content

Commit

Permalink
Accept luajit as DSO
Browse files Browse the repository at this point in the history
Some Linux distributions (at least Fedora and RHEL) do not provide
libluajit as an archive and instead only as a DSO.  Using the DSO
does not have any negative impact but the cmake script does not
check for the DSO files and instead fails to find luajit.

This simple change causes cmake to find the file as named in the
above distributions.  Maybe more change or a generalized method are
needed in future.  The prefered way to detect the DSO for Fedora/RHEL
would be to use pkgconfig but I don't propose to use it at this time.
  • Loading branch information
drepper committed May 4, 2017
1 parent f941c05 commit 845d363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindLuaJIT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ FIND_PATH(LUAJIT_INCLUDE_DIR lua.h
)

FIND_LIBRARY(LUAJIT_LIBRARY
NAMES libluajit-51.a libluajit-5.1.a libluajit.a
NAMES libluajit-51.a libluajit-5.1.a libluajit.a libluajit-5.1.so
HINTS
$ENV{LUAJIT_DIR}
PATH_SUFFIXES lib64 lib
Expand Down

0 comments on commit 845d363

Please sign in to comment.