mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb
(Exports#exports): added VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3bad2b6ed9
commit
d9691f6e84
3 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Dec 22 12:26:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb
|
||||||
|
(Exports#exports): added VERSION.
|
||||||
|
|
||||||
Mon Dec 22 12:25:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Dec 22 12:25:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* missing/vsnprintf.c (BSD_vfprintf): fix for test_sprintf_comb.rb, by
|
* missing/vsnprintf.c (BSD_vfprintf): fix for test_sprintf_comb.rb, by
|
||||||
|
|
|
@ -76,7 +76,7 @@ endif
|
||||||
ifeq (@target_os@,cygwin)
|
ifeq (@target_os@,cygwin)
|
||||||
cygwin-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)$(TEENY).dll: $(LIBRUBY_A)
|
cygwin-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)$(TEENY).dll: $(LIBRUBY_A)
|
||||||
@NM@ --extern --defined $(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 $@
|
@DLLWRAP@ -s --def=rubydll.def -o $@
|
||||||
@rm -f rubydll.def
|
@rm -f rubydll.def
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -64,6 +64,7 @@ class Exports
|
||||||
exports << "Library " + library
|
exports << "Library " + library
|
||||||
end
|
end
|
||||||
exports << "Description " + description.dump if description
|
exports << "Description " + description.dump if description
|
||||||
|
exports << "VERSION #{RbConfig::CONFIG['MAJOR']}.#{RbConfig::CONFIG['MINOR']}"
|
||||||
exports << "EXPORTS" << symbols()
|
exports << "EXPORTS" << symbols()
|
||||||
exports
|
exports
|
||||||
end
|
end
|
||||||
|
@ -132,6 +133,10 @@ class Exports::Mingw < Exports
|
||||||
@@nm ||= RbConfig::CONFIG["NM"]
|
@@nm ||= RbConfig::CONFIG["NM"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def exports(*)
|
||||||
|
super()
|
||||||
|
end
|
||||||
|
|
||||||
def each_line(objs, &block)
|
def each_line(objs, &block)
|
||||||
IO.foreach("|#{self.class.nm} --extern --defined #{objs.join(' ')}", &block)
|
IO.foreach("|#{self.class.nm} --extern --defined #{objs.join(' ')}", &block)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue