vendored libraries must be created with an object-file index

This commit is contained in:
Laurent Sansonetti
2012-09-01 15:26:33 +02:00
parent a71f934c67
commit bacbc9f535

View File

@@ -95,7 +95,7 @@ EOS
objs = Dir.glob('**/*.o')
FileUtils.rm_rf libname
unless objs.empty?
sh "#{@config.locate_binary('ar')} cq #{libname} #{objs.join(' ')}"
sh "#{@config.locate_binary('ar')} -rcs #{libname} #{objs.join(' ')}"
end
end
libpath = File.join(build_dir, libname)