From 20d12b13b4b2617318cc92446e5d0bf58902911a Mon Sep 17 00:00:00 2001 From: Paul Klumpp Date: Sun, 18 Oct 2015 00:50:58 +0200 Subject: [PATCH] Try more liblua version naming styles --- src/q2a_lua.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/q2a_lua.c b/src/q2a_lua.c index 64cac96..1453512 100644 --- a/src/q2a_lua.c +++ b/src/q2a_lua.c @@ -62,11 +62,14 @@ void q2a_lua_init(void) if(!lua_dll) { lua_dll = dlopen("liblua.so.5.1", RTLD_NOW|RTLD_GLOBAL); } + if(!lua_dll) { + lua_dll = dlopen("liblua.so.5", RTLD_NOW|RTLD_GLOBAL); + } if(!lua_dll) { lua_dll = dlopen("liblua.so.5.1.0", RTLD_NOW|RTLD_GLOBAL); } if(!lua_dll) { - gi.dprintf("Q2A Lua: Loading Lua shared object failed, tried: liblua5.1.so, liblua.so.5.1 and liblua.so.5.1.0\n"); + gi.dprintf("Q2A Lua: Loading Lua shared object failed, tried: liblua5.1.so, liblua.so.5.1, liblua.so.5 and liblua.so.5.1.0\n"); return; }