1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Fix Malformed archive issue

GYP creates thin archives by default which makes using the binary
version of the gem impossible.
This commit is contained in:
ignisf 2013-01-09 11:53:34 +02:00
parent b0ec939303
commit ecc956d2c7
2 changed files with 5 additions and 1 deletions

View file

@ -36,7 +36,7 @@ task :manual_compile do
require File.expand_path '../ext/libv8/arch.rb', __FILE__
include Libv8::Arch
Dir.chdir(V8_Source) do
sh %Q{#{make} -j2 #{libv8_arch}.release}
sh %Q{#{make} -j2 #{libv8_arch}.release ARFLAGS.target=crs}
end
end

View file

@ -17,6 +17,10 @@ module Libv8
# http://svnweb.freebsd.org/ports/head/lang/v8/Makefile?view=markup
flags << "strictaliasing=off" if RUBY_PLATFORM.include?("freebsd") and !check_gcc_compiler(compiler)
# Fix Malformed archive issue caused by GYP creating thin archives by
# default.
flags << "ARFLAGS.target=crs"
"#{libv8_arch}.#{profile} #{flags.join ' '}"
end