From dd4dca8f064205412d4e3bbddaef46b93771357f Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 12 May 2011 05:51:55 +0000 Subject: * test/dl/test_base.rb (Fiddle::LIBC_SO): its always msvc*.dll on mswin/mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/fiddle/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index b11f2e40c6..a95a43a963 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -28,7 +28,7 @@ when /linux/ libm_so = File.join(libdir, "libm.so.6") when /mingw/, /mswin/ require "rbconfig" - libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/, 2)[0] + ".dll" + libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/).find{|e| /^msvc/ =~ e} + ".dll" when /darwin/ libc_so = "/usr/lib/libc.dylib" libm_so = "/usr/lib/libm.dylib" -- cgit v1.2.3