summaryrefslogtreecommitdiffhomepage
path: root/tasks/bin.rake
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-02-12 10:29:47 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-02-12 10:33:53 +0900
commit5c130e8e7be5797bea19ec138e39f15ce464f53e (patch)
treea1697ce6001f405cc8c738b6c72c8f285edcaef9 /tasks/bin.rake
parent69f8a52866e83951bdfcfc3cae4f83a34c17bd9d (diff)
downloadmruby-5c130e8e7be5797bea19ec138e39f15ce464f53e.tar.gz
mruby-5c130e8e7be5797bea19ec138e39f15ce464f53e.zip
Do not collect linker options from binary gems; close #5210
Binary gems are mrbgems that set `spec.bins` in their `mrbgem.rake`, and usually their names are prefixed with `mruby-bin-`.
Diffstat (limited to 'tasks/bin.rake')
-rw-r--r--tasks/bin.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/bin.rake b/tasks/bin.rake
index bc8820b66..5c764458d 100644
--- a/tasks/bin.rake
+++ b/tasks/bin.rake
@@ -6,8 +6,8 @@ MRuby.each_target do |build|
build.bins.each{|bin| build.products << define_installer_if_needed(bin)}
- linker_attrs = build.gems.linker_attrs
build.gems.each do |gem|
+ linker_attrs = build.gems.linker_attrs(gem)
gem.bins.each do |bin|
exe = build.exefile("#{build.build_dir}/bin/#{bin}")
objs = Dir["#{gem.dir}/tools/#{bin}/*.{c,cpp,cxx,cc}"].map do |f|