ruby-changes:10251
From: nobu <ko1@a...>
Date: Tue, 27 Jan 2009 14:41:54 +0900 (JST)
Subject: [ruby-changes:10251] Ruby:r21795 (trunk): * cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to export
nobu 2009-01-27 14:41:38 +0900 (Tue, 27 Jan 2009) New Revision: 21795 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21795 Log: * cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to export non-function symbols. [ruby-core:21582] * win32/mkexports.rb (Exports::Mingw#each_export): ditto. Modified files: trunk/ChangeLog trunk/cygwin/GNUmakefile.in trunk/win32/mkexports.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 21794) +++ ChangeLog (revision 21795) @@ -1,3 +1,10 @@ +Tue Jan 27 14:41:33 2009 Nobuyoshi Nakada <nobu@r...> + + * 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@r...> * ext/ripper/depend: use VPATH. Index: cygwin/GNUmakefile.in =================================================================== --- cygwin/GNUmakefile.in (revision 21794) +++ cygwin/GNUmakefile.in (revision 21795) @@ -71,7 +71,7 @@ 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 Index: win32/mkexports.rb =================================================================== --- win32/mkexports.rb (revision 21794) +++ win32/mkexports.rb (revision 21795) @@ -143,7 +143,7 @@ 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" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/