Sha256: 7d05f605fabdcde392b315075a6af627ea2651eab8e994186be1f8d9b50c429c
Contents?: true
Size: 851 Bytes
Versions: 3
Compression:
Stored size: 851 Bytes
Contents
require 'mkmf' require File.expand_path '../build', __FILE__ have_library('pthread') have_library('objc') if RUBY_PLATFORM =~ /darwin/ $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" $CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g" $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" $CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /darwin/ CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/ if CONFIG['warnflags'] CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '') CONFIG['warnflags'].gsub!('-Wimplicit-function-declaration', '') end if enable_config('debug') $CFLAGS += " -O0 -ggdb3" end begin require 'libv8' rescue LoadError require 'rubygems' gem 'libv8' require 'libv8' end Libv8.configure_makefile create_makefile('v8/init')
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
therubyracer-0.11.2 | ext/v8/extconf.rb |
therubyracer-0.11.1 | ext/v8/extconf.rb |
therubyracer-0.11.1beta1 | ext/v8/extconf.rb |