Sha256: 6de51b2b9c8499dcaf52bab1f50e0715933a79a021a0a4a6dcae2592a0d7403f
Contents?: true
Size: 820 Bytes
Versions: 13
Compression:
Stored size: 820 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 if have_rubygem_libv8? build_with_rubygem_libv8 else build_with_system_libv8 end create_makefile('v8/init')
Version data entries
13 entries across 13 versions & 2 rubygems