require 'mkmf' require_relative '../../lib/mini_racer/version' gem 'libv8-node', MiniRacer::LIBV8_NODE_VERSION require 'libv8-node' IS_DARWIN = RUBY_PLATFORM =~ /darwin/ have_library('pthread') have_library('objc') if IS_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 IS_DARWIN $CPPFLAGS += " -std=c++14" $CPPFLAGS += " -fpermissive" #$CPPFLAGS += " -DV8_COMPRESS_POINTERS" $CPPFLAGS += " -fvisibility=hidden " $CPPFLAGS += " -Wno-reserved-user-defined-literal" if IS_DARWIN $LDFLAGS.insert(0, " -stdlib=libc++ ") if IS_DARWIN # check for missing symbols at link time # $LDFLAGS += " -Wl,--no-undefined " unless IS_DARWIN # $LDFLAGS += " -Wl,-undefined,error " if IS_DARWIN if ENV['CXX'] puts "SETTING CXX" CONFIG['CXX'] = ENV['CXX'] end CXX11_TEST = <