Sha256: 50ea7074bd5e41cd9d879306e1128cc219f556bf26bb9aa0b99d8f9927a030aa
Contents?: true
Size: 571 Bytes
Versions: 69
Compression:
Stored size: 571 Bytes
Contents
require 'mkmf' if with_config('static-libstdc++') $LDFLAGS << ' ' << `#{CONFIG['CC']} -print-file-name=libstdc++.a`.chomp else have_library('stdc++') end create_makefile 'unf_ext' unless CONFIG['CXX'] case CONFIG['CC'] when %r{((?:.*[-/])?)gcc([-0-9.]*)$} cxx = $1 + 'g++' + $2 when %r{((?:.*[-/])?)clang([-0-9.]*)$} cxx = $1 + 'clang++' + $2 else cxx = CONFIG['CC'] end warn "CXX is automatically set to #{cxx}" new_mf = <<-EOF << File.read('Makefile') CXX=#{cxx} EOF File.open('Makefile', 'w') { |mf| mf.print new_mf } end
Version data entries
69 entries across 60 versions & 9 rubygems