Mkmf.rb (1.7) causing confusion on mswin32

I just notice few mistake in mkmf.rb (ruby 1.7.3) since Sept 24,
causing much grief compiling extensions on mswin32 (using msvc)
Here is the patch to remedy such horror:

— mkmf.rb.orig Tue Sep 24 11:29:56 2002
+++ mkmf.rb Wed Sep 25 16:11:23 2002
@@ -211,8 +211,11 @@
def libpathflag
if $mswin
ENV[‘LIB’] = ($LIBPATH + [ORIG_LIBPATH]).join(’;’)

  • yield “”
  • ENV[‘LIB’] = ORIG_LIBPATH
  • begin
  •  yield ""
    
  • ensure
  •  ENV['LIB'] = ORIG_LIBPATH
    
  • end
    else
    yield $LIBPATH.map{|x| %Q[#{LIBPATHFLAG}"#{x}"]}.join
    end

Hello.

In message “mkmf.rb (1.7) causing confusion on mswin32”

···

on Sep.25,2002 17:14:55, skywizard@time.net.my wrote:

I just notice few mistake in mkmf.rb (ruby 1.7.3) since Sept 24,
causing much grief compiling extensions on mswin32 (using msvc)
Here is the patch to remedy such horror:

I’ve committed it.
Thank you.


U.Nakamura usa@osb.att.ne.jp