mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
use rbconfig instead of mkmf to determin LIBEXT
Merge remote-tracking branch 'divoxx/fix_mkmf_issue' Conflicts: lib/libv8.rb
This commit is contained in:
commit
fc35ad671a
1 changed files with 8 additions and 3 deletions
11
lib/libv8.rb
11
lib/libv8.rb
|
@ -1,13 +1,18 @@
|
|||
require 'mkmf'
|
||||
require 'rbconfig'
|
||||
|
||||
require 'libv8/arch'
|
||||
module Libv8
|
||||
|
||||
module_function
|
||||
|
||||
def config
|
||||
Config::MAKEFILE_CONFIG
|
||||
end
|
||||
|
||||
def libv8_object(name)
|
||||
filename = "#{libv8_profile}/libv8_#{name}.#{$LIBEXT}"
|
||||
filename = "#{libv8_profile}/libv8_#{name}.#{config['LIBEXT']}"
|
||||
unless File.exists? filename
|
||||
filename = "#{libv8_profile}/obj.target/tools/gyp/libv8_#{name}.#{$LIBEXT}"
|
||||
filename = "#{libv8_profile}/obj.target/tools/gyp/libv8_#{name}.#{config['LIBEXT']}"
|
||||
end
|
||||
return filename
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue