Skip to content

Commit

Permalink
adding MacPorts,Fink,etc search path in /opt/local/lib (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
comomac authored and tduehr committed Jul 3, 2018
1 parent 559141d commit 0ee4f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi/library.rb
Expand Up @@ -126,7 +126,7 @@ def ffi_lib(*names)
else
# TODO better library lookup logic
unless libname.start_with?("/") || FFI::Platform.windows?
path = ['/usr/lib/','/usr/local/lib/'].find do |pth|
path = ['/usr/lib/','/usr/local/lib/','/opt/local/lib/'].find do |pth|
File.exist?(pth + libname)
end
if path
Expand Down

0 comments on commit 0ee4f79

Please sign in to comment.