We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbde834 commit a2ffc0cCopy full SHA for a2ffc0c
Rakefile
@@ -344,6 +344,10 @@ namespace :build do
344
sh "#{build.baseruby_path} #{extconf_args.join(" ")}", chdir: objdir
345
make_cmd = %Q(make -C "#{objdir}" #{make_args.join(" ")} static)
346
sh make_cmd
347
+ # A ext can provide link args by link.filelist. It contains only built archive file by default.
348
+ unless File.exist?("#{objdir}/link.filelist")
349
+ File.write("#{objdir}/link.filelist", Dir.glob("#{objdir}/*.a").join("\n"))
350
+ end
351
end
352
mkdir_p File.dirname(build.extinit_obj)
353
sh %Q(ruby #{base_dir}/ext/extinit.c.erb #{libs.join(" ")} | #{cc} -c -x c - -o #{build.extinit_obj})
0 commit comments