Commit 845d3636 authored by Ulrich Drepper's avatar Ulrich Drepper

Accept luajit as DSO

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.
parent f941c058
...@@ -44,7 +44,7 @@ FIND_PATH(LUAJIT_INCLUDE_DIR lua.h ...@@ -44,7 +44,7 @@ FIND_PATH(LUAJIT_INCLUDE_DIR lua.h
) )
FIND_LIBRARY(LUAJIT_LIBRARY 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 HINTS
$ENV{LUAJIT_DIR} $ENV{LUAJIT_DIR}
PATH_SUFFIXES lib64 lib PATH_SUFFIXES lib64 lib
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment