q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9fa0e6ea19a36f8fdf8e8fb6abb5c05cbf2bfc60

commit 9fa0e6ea19a36f8fdf8e8fb6abb5c05cbf2bfc60
Author: Jean Guyomarc'h <jean.guyoma...@gmail.com>
Date:   Tue Nov 4 11:55:14 2014 +0000

    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
---
 src/bin/elua/core/util.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/elua/core/util.lua b/src/bin/elua/core/util.lua
index 78db3ab..44a5042 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

-- 


Reply via email to