Browse Source

Add support for .so files ending in _drv

pull/38/head
Mariano Valles 12 years ago
parent
commit
dc5e4348fd
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/jiffy.erl

+ 7
- 1
src/jiffy.erl View File

@ -93,7 +93,13 @@ init() ->
Path ->
Path
end,
erlang:load_nif(filename:join(PrivDir, "jiffy_drv"), 0).
% In some env jiffy_drv.so is generated, in others jiffy.so
case filelib:is_file(filename:join(PrivDir, "jiffy_drv.so")) of
true ->
erlang:load_nif(filename:join(PrivDir, "jiffy_drv"), 0);
_ ->
erlang:load_nif(filename:join(PrivDir, "jiffy"), 0)
end.
not_loaded(Line) ->

Loading…
Cancel
Save