summaryrefslogtreecommitdiff
path: root/win32/mkexports.rb
diff options
context:
space:
mode:
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-xwin32/mkexports.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index adf0c5e336..cd88e968a5 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