Skip to content

Commit

Permalink
perhaps symlinking on Fedora isn't needed?
Browse files Browse the repository at this point in the history
  • Loading branch information
poeticAndroid committed Dec 5, 2019
1 parent 351681d commit cd4d4ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ else

(
sudo apt-get install libsdl2-2.0-0 libfreeimage3 liblua5.3-dev curl ||
(sudo dnf install SDL2 freeimage lua curl &&
sudo ln -s /usr/lib64/liblua-5.3.so /usr/lib64/liblua5.3.so)
(
sudo dnf install SDL2 freeimage lua curl # &&
# sudo ln -s /usr/lib64/liblua-5.3.so /usr/lib64/liblua5.3.so
)
) && rm "$0"
fi
2 changes: 1 addition & 1 deletion source/machine.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import pixmap;
import image_loader;
import network;

const VERSION = "0.9.11"; /// version of the software
const VERSION = "0.9.12"; /// version of the software

/**
Class representing "the machine"!
Expand Down
4 changes: 2 additions & 2 deletions source/riverd-lua/source/riverd/lua/dynload.d
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ version(D_BetterC)
void* dylib_load_lua() {
version(Windows) void* handle = dylib_load("lua53.dll");
else version(OSX) void* handle = dylib_load("liblua.5.3.dylib");
else version(Posix) void* handle = dylib_load("liblua.so.5.3,liblua5.3.so");
else version(Posix) void* handle = dylib_load("liblua.so.5.3,liblua5.3.so,liblua-5.3.so");

if(handle is null) return null;

Expand Down Expand Up @@ -222,7 +222,7 @@ else
{
version(Windows) private enum string[] _lua_libs = ["lua53.dll"];
else version(OSX) private enum string[] _lua_libs = ["liblua.5.3.dylib"];
else version(Posix) private enum string[] _lua_libs = ["liblua.so.5.3", "liblua5.3.so"];
else version(Posix) private enum string[] _lua_libs = ["liblua.so.5.3", "liblua5.3.so", "liblua-5.3.so"];

mixin(DylibLoaderBuilder!("Lua", _lua_libs, riverd.lua.dynfun));
}
Expand Down

0 comments on commit cd4d4ed

Please sign in to comment.