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:
parent
b0ec939303
commit
ecc956d2c7
2 changed files with 5 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue