diff --git a/bindings/ruby/ext/dependencies.rb b/bindings/ruby/ext/dependencies.rb index 79e325c9..2ba4b94b 100644 --- a/bindings/ruby/ext/dependencies.rb +++ b/bindings/ruby/ext/dependencies.rb @@ -17,7 +17,11 @@ class Dependencies def libs tsort.filter_map {|node| label, shape = @nodes[node] - shape == @static_lib_shape ? label : nil + if shape == @static_lib_shape + label.gsub(/\\n\([^)]+\)/, '') + else + nil + end }.reverse.collect {|lib| "lib#{lib}.a"} end