Sha256: b9b51f90f7c1a69ee41f3be891fe2a150a1b13e373415d923ec371a1717d6a5e

Contents?: true

Size: 758 Bytes

Versions: 54

Compression:

Stored size: 758 Bytes

Contents

require 'mkmf'
require 'set'
begin
  require 'libv8'
rescue LoadError
  require 'rubygems'
  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

54 entries across 54 versions & 5 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.7.4 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.7.3 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.7.2 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.7.1 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.7.0 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.9 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.8 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.7 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.6 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.5 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.4 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.3 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.2 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.1 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.6.0 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.5.17 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.5.16 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.5.15 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb
classiccms-0.5.14 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/extconf.rb