[Rubygems-developers] [ rubygems-Bugs-28399 ] rubygems should use RbConfig::CONFIG['make-prog']

noreply at rubyforge.org noreply at rubyforge.org
Fri Nov 12 23:29:41 EST 2010


Bugs item #28399, was opened at 2010-07-17 18:38
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28399&group_id=126

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Greg Hazel (ghazel)
>Assigned to: Luis Lavena (luislavena)
Summary: rubygems should use RbConfig::CONFIG['make-prog']

Initial Comment:
Similar to mkmf.rb, rubygems should use Config['make-prog'] if it is set. This allows per-ruby configuration of which "make" to use.


mkmf.rb does:

$make = with_config("make-prog", ENV["MAKE"] || "make")
make, = Shellwords.shellwords($make)
$nmake = nil
case
when $mswin
  $nmake = ?m if /nmake/i =~ make
when $bccwin
  $nmake = ?b if /Borland/i =~ `#{make} -h`
end


rubygems/ext/builder.rb does:

make_program = ENV['make']
unless make_program then
  make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
end


I believe they should be the same, and that the mkmf.rb method is preferable.

----------------------------------------------------------------------

Comment By: James Tucker (raggi)
Date: 2010-07-18 05:23

Message:
+1

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28399&group_id=126


More information about the Rubygems-developers mailing list