2
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
4
# See LICENSE.txt for permissions.
7
require 'rubygems/ext/builder'
9
class Gem::Ext::RakeBuilder < Gem::Ext::Builder
11
def self.build(extension, directory, dest_path, results)
12
if File.basename(extension) =~ /mkrf_conf/i then
13
cmd = "#{Gem.ruby} #{File.basename extension}"
14
cmd << " #{ARGV.join " "}" unless ARGV.empty?
18
cmd = ENV['rake'] || 'rake'
19
cmd += " RUBYARCHDIR=#{dest_path} RUBYLIBDIR=#{dest_path}" # ENV is frozen