aboutsummaryrefslogtreecommitdiffstats
path: root/ext/-test-/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-17 14:21:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-17 14:21:18 +0000
commit22263729af357eb86e8bc2165a9eaa6f25eec8a6 (patch)
treea522f91262433dffdd92d44fa10c7cdd07271161 /ext/-test-/win32
parent902084a60a0e4d47621bdfc458480f42135d3da7 (diff)
downloadruby-22263729af357eb86e8bc2165a9eaa6f25eec8a6.tar.gz
* ext/-test-/win32/dln/extconf.rb: fix for mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/win32')
-rw-r--r--ext/-test-/win32/dln/extconf.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/-test-/win32/dln/extconf.rb b/ext/-test-/win32/dln/extconf.rb
index f2ea8d55d8..2e52acc1d0 100644
--- a/ext/-test-/win32/dln/extconf.rb
+++ b/ext/-test-/win32/dln/extconf.rb
@@ -1,4 +1,4 @@
-if /mswin|mingw/ =~ RUBY_PLATFORM
+if $mingw or $mswin
$objs = ["dlntest.o"]
$cleanfiles << "$(topdir)/dlntest.dll"
config_string('cleanobjs') {|t| $cleanfiles.concat(t.gsub(/\$\*/, 'dlntest').split)}
@@ -9,10 +9,11 @@ if /mswin|mingw/ =~ RUBY_PLATFORM
open("Makefile", "wb") do |mf|
mf.puts m, "\n"
sodir = $extout ? "$(RUBYARCHDIR)/" : ''
- mf.print "#{sodir}$(DLLIB): dlntest.#{$LIBEXT}"
- mf.puts
- mf.puts "dlntest.#{$LIBEXT}: $(topdir)/dlntest.dll"
+ mf.print "#{sodir}$(DLLIB): $(topdir)/dlntest.dll"
mf.puts
+ if $mingw
+ mf.puts "$(topdir)/dlntest.dll: DEFFILE := $(srcdir)/libdlntest.def"
+ end
mf.puts depend_rules("$(topdir)/dlntest.dll: libdlntest.o libdlntest.def")
mf.puts "\t$(ECHO) linking shared-object $(@F)\n"
mf.print "\t-$(Q)$(RM) $@\n"