summaryrefslogtreecommitdiff
path: root/src
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 /src
parent8077e14fd6362dfb3ab29f54b77019f89c1d8687 (diff)
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
Diffstat (limited to 'src')
-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)
77 else 77 else
78 if ffi.os == "Windows" then 78 if ffi.os == "Windows" then
79 lib = ffi.load(ev .. "\\" .. libname .. ".dll") 79 lib = ffi.load(ev .. "\\" .. libname .. ".dll")
80 elseif ffi.os == "OSX" then
81 lib = ffi.load(ev .. "/lib" .. libname .. ".dylib")
80 else 82 else
81 lib = ffi.load(ev .. "/lib" .. libname .. ".so") 83 lib = ffi.load(ev .. "/lib" .. libname .. ".so")
82 end 84 end