lib/fiddle.rb in fiddle-1.1.5 vs lib/fiddle.rb in fiddle-1.1.6

- old
+ new

@@ -109,10 +109,14 @@ File.open(path) do |input| input.each_line do |line| case line when /\A\s*(?:INPUT|GROUP)\s*\(\s*([^\s,\)]+)/ # TODO: Should we support multiple files? - return dlopen($1) + first_input = $1 + if first_input.start_with?("-l") + first_input = "lib#{first_input[2..-1]}.so" + end + return dlopen(first_input) end end end # Not found