mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to export
non-function symbols. [ruby-core:21582] * win32/mkexports.rb (Exports::Mingw#each_export): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9cb14ad08
commit
9c29032c73
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Tue Jan 27 14:41:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to export
|
||||
non-function symbols. [ruby-core:21582]
|
||||
|
||||
* win32/mkexports.rb (Exports::Mingw#each_export): ditto.
|
||||
|
||||
Tue Jan 27 12:59:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/ripper/depend: use VPATH.
|
||||
|
|
|
@ -71,7 +71,7 @@ $(RUBYDEF): $(LIBRUBY_A) $(PREP) $(RBCONFIG)
|
|||
ifeq (@target_os@,cygwin)
|
||||
@NM@ --extern --defined $(LIBRUBY_A) | \
|
||||
$(MINIRUBY) -n -e 'BEGIN{puts "VERSION $(MAJOR).$(MINOR)","EXPORTS"}' \
|
||||
-e 'puts $$1 if / [A-Z] _((?!Init_).*)$$/' > $@
|
||||
-e 'if / (?:(T)|[A-Z]) _((?!Init_).*)$$/; puts "#{$$2}#{" DATA" if $$1}"; end' > $@
|
||||
else
|
||||
$(MINIRUBY) $(srcdir)/win32/mkexports.rb -output=$@ $(LIBRUBY_A)
|
||||
endif
|
||||
|
|
|
@ -143,7 +143,7 @@ class Exports::Mingw < Exports
|
|||
|
||||
def each_export(objs)
|
||||
objdump(objs) do |l|
|
||||
yield $1 if / [[:upper:]] _((?!Init_).*)$/ =~ l
|
||||
yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_((?!Init_).*)$/ =~ l
|
||||
end
|
||||
yield "strcasecmp", "_stricmp"
|
||||
yield "strncasecmp", "_strnicmp"
|
||||
|
|
Loading…
Reference in a new issue