Sha256: 5ccb75f297187fcdb77aebb3bb9ca67f6177c26fa5a6d716e3456cb4c710290e

Contents?: true

Size: 801 Bytes

Versions: 2

Compression:

Stored size: 801 Bytes

Contents

require 'mkmf'
require 'set'
begin
  require 'rubygems'
  gem 'libv8', '~> 3.3.10'
  require 'libv8'
rescue LoadError, Gem::LoadError
  require 'libv8'
end

have_library('objc') if RUBY_PLATFORM =~ /darwin/

#we have to manually prepend the libv8 include path to INCFLAGS
#since find_header() does not actually work as advertized.
#see https://github.com/cowboyd/therubyracer/issues/91
$INCFLAGS.insert 0, "-I#{Libv8.include_path} "

$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
$CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g"
$CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic"

$LDFLAGS.insert 0, "#{Libv8.library_path}/libv8.#{$LIBEXT} "
$LIBS << ' -lpthread'

CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/

create_makefile('v8')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
therubyracer-0.10.2 ext/v8/extconf.rb
therubyracer-0.10.2beta1 ext/v8/extconf.rb