1
0
Fork 0
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:
Charles Lowell 2012-08-28 14:13:52 -05:00
commit fc35ad671a

View file

@ -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