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

ruby-changes:9374

From: nobu <ko1@a...>
Date: Mon, 22 Dec 2008 12:26:38 +0900 (JST)
Subject: [ruby-changes:9374] Ruby:r20912 (trunk): * cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb

nobu	2008-12-22 12:26:22 +0900 (Mon, 22 Dec 2008)

  New Revision: 20912

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

  Log:
    * cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb
      (Exports#exports): added VERSION.

  Modified files:
    trunk/ChangeLog
    trunk/cygwin/GNUmakefile.in
    trunk/win32/mkexports.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20911)
+++ ChangeLog	(revision 20912)
@@ -1,3 +1,8 @@
+Mon Dec 22 12:26:18 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb
+	  (Exports#exports): added VERSION.
+
 Mon Dec 22 12:25:09 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* missing/vsnprintf.c (BSD_vfprintf): fix for test_sprintf_comb.rb, by
Index: cygwin/GNUmakefile.in
===================================================================
--- cygwin/GNUmakefile.in	(revision 20911)
+++ cygwin/GNUmakefile.in	(revision 20912)
@@ -76,7 +76,7 @@
 ifeq (@target_os@,cygwin)
 cygwin-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)$(TEENY).dll: $(LIBRUBY_A)
 	@NM@ --extern --defined $(LIBRUBY_A) | \
-	  $(MINIRUBY) -ne 'BEGIN{puts "EXPORTS"}; puts $$1+"=$(@F)."+$$1 if / [CDT] _(.*)$$/' >rubydll.def
+	  $(MINIRUBY) -ne 'BEGIN{puts "VERSION $(MAJOR).$(MINOR)","EXPORTS"}; puts $$1+"=$(@F)."+$$1 if / [CDT] _(.*)$$/' >rubydll.def
 	@DLLWRAP@ -s --def=rubydll.def -o $@
 	@rm -f rubydll.def
 endif
Index: win32/mkexports.rb
===================================================================
--- win32/mkexports.rb	(revision 20911)
+++ win32/mkexports.rb	(revision 20912)
@@ -64,6 +64,7 @@
       exports << "Library " + library
     end
     exports << "Description " + description.dump if description
+    exports << "VERSION #{RbConfig::CONFIG['MAJOR']}.#{RbConfig::CONFIG['MINOR']}"
     exports << "EXPORTS" << symbols()
     exports
   end
@@ -132,6 +133,10 @@
     @@nm ||= RbConfig::CONFIG["NM"]
   end
 
+  def exports(*)
+    super()
+  end
+
   def each_line(objs, &block)
     IO.foreach("|#{self.class.nm} --extern --defined #{objs.join(' ')}", &block)
   end

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

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