Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/mruby/gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,12 @@ def import_include_paths(g)
end

def linker_attrs(gem=nil)
gems = self.reject{|g| g.bin?} # library gems
gems << gem unless gem.nil?
# A gem that puts no object in libmruby.a contributes nothing to a link
# of it, so its linker options are its own binary's alone; ref #5210.
# One that does put objects there needs its options wherever libmruby.a
# is linked, whether or not it builds a binary as well.
gems = self.reject{|g| g.bin? && g.objs.empty?}
gems << gem unless gem.nil? || gems.include?(gem)
gems.map{|g| g.linker.run_attrs}.transpose
end
end # List
Expand Down
Loading