summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-22 03:26:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-22 03:26:22 +0000
commit9f2d82e150de217b0e2fd325b0fd831ed7812135 (patch)
tree480b392b45fc4becf97a6ea59b03adb3412ffa6a /win32
parent8c05add514da0147185fc12c6c575f60b6537c34 (diff)
downloadruby-9f2d82e150de217b0e2fd325b0fd831ed7812135.tar.gz
ruby-9f2d82e150de217b0e2fd325b0fd831ed7812135.tar.xz
ruby-9f2d82e150de217b0e2fd325b0fd831ed7812135.zip
* cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb
(Exports#exports): added VERSION. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/mkexports.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index adf0c5e33..cd88e968a 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -64,6 +64,7 @@ class Exports
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 @@ class Exports::Mingw < Exports
@@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