[前][次][番号順一覧][スレッド一覧]

ruby-changes:23317

From: nobu <ko1@a...>
Date: Tue, 17 Apr 2012 23:21:27 +0900 (JST)
Subject: [ruby-changes:23317] nobu:r35368 (trunk): * ext/-test-/win32/dln/extconf.rb: fix for mingw.

nobu	2012-04-17 23:21:18 +0900 (Tue, 17 Apr 2012)

  New Revision: 35368

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35368

  Log:
    * ext/-test-/win32/dln/extconf.rb: fix for mingw.

  Modified files:
    trunk/ext/-test-/win32/dln/extconf.rb

Index: ext/-test-/win32/dln/extconf.rb
===================================================================
--- ext/-test-/win32/dln/extconf.rb	(revision 35367)
+++ ext/-test-/win32/dln/extconf.rb	(revision 35368)
@@ -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 @@
   open("Makefile", "wb") do |mf|
     mf.puts m, "\n"
     sodir = $extout ? "$(RUBYARCHDIR)/" : ''
-    mf.print "#{sodir}$(DLLIB): dlntest.#{$LIBEXT}"
+    mf.print "#{sodir}$(DLLIB): $(topdir)/dlntest.dll"
     mf.puts
-    mf.puts "dlntest.#{$LIBEXT}: $(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"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]