ruby-changes:48419
From: nobu <ko1@a...>
Date: Sun, 29 Oct 2017 08:54:21 +0900 (JST)
Subject: [ruby-changes:48419] nobu:r60533 (trunk): Localize EC functions
nobu 2017-10-29 08:54:16 +0900 (Sun, 29 Oct 2017) New Revision: 60533 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60533 Log: Localize EC functions Modified files: trunk/Makefile.in trunk/common.mk trunk/win32/mkexports.rb Index: common.mk =================================================================== --- common.mk (revision 60532) +++ common.mk (revision 60533) @@ -289,7 +289,7 @@ $(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DL https://github.com/ruby/ruby/blob/trunk/common.mk#L289 ruby.imp: $(COMMONOBJS) $(Q)$(NM) -Pgp $(COMMONOBJS) | \ - awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^(Init_|ruby_static_id_|.*_threadptr_|\.)/{print $$1}' | \ + awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^(Init_|ruby_static_id_|.*_threadptr_|rb_ec_\.)/{print $$1}' | \ sort -u -o $@ install: install-$(INSTALLDOC) Index: win32/mkexports.rb =================================================================== --- win32/mkexports.rb (revision 60532) +++ win32/mkexports.rb (revision 60533) @@ -7,7 +7,7 @@ module RbConfig https://github.com/ruby/ruby/blob/trunk/win32/mkexports.rb#L7 end class Exports - PrivateNames = /(?:Init_|ruby_static_id_|.*_threadptr_|DllMain\b)/ + PrivateNames = /(?:Init_|ruby_static_id_|.*_threadptr_|rb_ec_|DllMain\b)/ @@subclass = [] def self.inherited(klass) Index: Makefile.in =================================================================== --- Makefile.in (revision 60532) +++ Makefile.in (revision 60533) @@ -255,7 +255,7 @@ $(LIBRUBY_SO): https://github.com/ruby/ruby/blob/trunk/Makefile.in#L255 $(ECHO) linking shared-library $@ $(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@ -$(Q) $(OBJCOPY) -w -L '$(SYMBOL_PREFIX)Init_*' -L '$(SYMBOL_PREFIX)ruby_static_id_*' \ - -L '$(SYMBOL_PREFIX)*_threadptr_*' $@ + -L '$(SYMBOL_PREFIX)*_threadptr_*' -L '$(SYMBOL_PREFIX)*_ec_*' $@ $(Q) $(POSTLINK) @-$(MINIRUBY) -e 'ARGV.each{|link| File.delete link rescue nil; \ File.symlink "$(LIBRUBY_SO)", link}' \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/