Sha256: 6fb416c3d45ebc354fc214b537d1a146f90d731059af64b63048fb8084e1f981

Contents?: true

Size: 756 Bytes

Versions: 2

Compression:

Stored size: 756 Bytes

Contents

require 'mkmf'
require 'set'
begin
  require 'libv8'
rescue LoadError
  require 'rubygems'
  require 'libv8'
end

have_library('pthread')
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"

$DEFLIBPATH.unshift(Libv8.library_path)
$LIBS << ' -lv8'

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.9.5 ext/v8/extconf.rb
therubyracer-0.9.4 ext/v8/extconf.rb