summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2014-11-04 11:55:14 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-11-04 11:55:14 +0000
commit9fa0e6ea19a36f8fdf8e8fb6abb5c05cbf2bfc60 (patch)
tree8c6d675c60d6ac771d1a0a8338b6655167f15676
parent8077e14fd6362dfb3ab29f54b77019f89c1d8687 (diff)
downloadefl-9fa0e6ea19a36f8fdf8e8fb6abb5c05cbf2bfc60.tar.gz
elua: load .dylib on OSX
Summary: On OSX, libraries are generated as .dylib instead of .so. This led elua to try loading missing libraries, and therefore crashing. @fix Reviewers: cedric, q66 Reviewed By: q66 Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1642
-rw-r--r--src/bin/elua/core/util.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/elua/core/util.lua b/src/bin/elua/core/util.lua
index 78db3abaf1..44a5042bea 100644
--- a/src/bin/elua/core/util.lua
+++ b/src/bin/elua/core/util.lua
@@ -77,6 +77,8 @@ M.lib_load = function(libname)
else
if ffi.os == "Windows" then
lib = ffi.load(ev .. "\\" .. libname .. ".dll")
+ elseif ffi.os == "OSX" then
+ lib = ffi.load(ev .. "/lib" .. libname .. ".dylib")
else
lib = ffi.load(ev .. "/lib" .. libname .. ".so")
end