ruby-changes:43858
From: usa <ko1@a...>
Date: Tue, 16 Aug 2016 15:03:56 +0900 (JST)
Subject: [ruby-changes:43858] usa:r55931 (ruby_2_2): merge revision(s) 55434: [Backport #12401]
usa 2016-08-16 15:03:51 +0900 (Tue, 16 Aug 2016) New Revision: 55931 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55931 Log: merge revision(s) 55434: [Backport #12401] * common.mk (build-ext), ext/extmk.rb: use variable EXTENCS different than ENCOBJS, to get rid of circular dependency. build libencs when linking encodings statically. [ruby-core:75618] [Bug #12401] Modified directories: branches/ruby_2_2/ Modified files: branches/ruby_2_2/ChangeLog branches/ruby_2_2/common.mk branches/ruby_2_2/ext/extmk.rb branches/ruby_2_2/version.h Index: ruby_2_2/ChangeLog =================================================================== --- ruby_2_2/ChangeLog (revision 55930) +++ ruby_2_2/ChangeLog (revision 55931) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1 +Tue Aug 16 14:58:50 2016 Nobuyoshi Nakada <nobu@r...> + + * common.mk (build-ext), ext/extmk.rb: use variable EXTENCS + different than ENCOBJS, to get rid of circular dependency. + build libencs when linking encodings statically. + [ruby-core:75618] [Bug #12401] + Tue Aug 16 14:54:14 2016 Nobuyoshi Nakada <nobu@r...> * variable.c (rb_local_constants_i): exclude private constants Index: ruby_2_2/ext/extmk.rb =================================================================== --- ruby_2_2/ext/extmk.rb (revision 55930) +++ ruby_2_2/ext/extmk.rb (revision 55931) @@ -696,12 +696,12 @@ if $configure_only and $command_output https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ext/extmk.rb#L696 mf.macro "EXTLDFLAGS", $extflags.split submakeopts = [] if enable_config("shared", $enable_shared) - submakeopts << 'DLDOBJS="$(EXTOBJS) $(ENCOBJS)"' + submakeopts << 'DLDOBJS="$(EXTOBJS) $(EXTENCS)"' submakeopts << 'EXTOBJS=' submakeopts << 'EXTSOLIBS="$(EXTLIBS)"' submakeopts << 'LIBRUBY_SO_UPDATE=$(LIBRUBY_EXTS)' else - submakeopts << 'EXTOBJS="$(EXTOBJS) $(ENCOBJS)"' + submakeopts << 'EXTOBJS="$(EXTOBJS) $(EXTENCS)"' submakeopts << 'EXTLIBS="$(EXTLIBS)"' end submakeopts << 'EXTLDFLAGS="$(EXTLDFLAGS)"' @@ -718,14 +718,15 @@ if $configure_only and $command_output https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ext/extmk.rb#L718 mf.puts mf.puts "#{rubies.join(' ')}: $(extensions:/.=/#{$force_static ? 'static' : 'all'})" submake = "$(Q)$(MAKE) $(MFLAGS) $(SUBMAKEOPTS)" - mf.puts "all static: $(EXTOBJS)\n\t#{submake} #{rubies.join(' ')}\n" + mf.puts "all static: #{rubies.join(' ')}\n" $extobjs.each do |tgt| mf.puts "#{tgt}: #{File.dirname(tgt)}/static" end - mf.puts "#{rubies.join(' ')}: $(EXTOBJS)" + mf.puts "#{rubies.join(' ')}: $(EXTOBJS)#{' libencs' if CONFIG['ENCSTATIC'] == 'static'}" rubies.each do |tgt| mf.puts "#{tgt}:\n\t#{submake} $@" end + mf.puts "libencs:\n\t$(Q)$(MAKE) -f enc.mk V=$(V) $@" mf.puts "ext/extinit.#{$OBJEXT}:\n\t$(Q)$(MAKE) $(MFLAGS) V=$(V) $@" if $static mf.puts if $gnumake == "yes" Index: ruby_2_2/common.mk =================================================================== --- ruby_2_2/common.mk (revision 55930) +++ ruby_2_2/common.mk (revision 55931) @@ -187,7 +187,7 @@ configure-ext: $(EXTS_MK) https://github.com/ruby/ruby/blob/trunk/ruby_2_2/common.mk#L187 build-ext: $(EXTS_MK) $(Q)$(MAKE) -f $(EXTS_MK) $(MFLAGS) libdir="$(libdir)" LIBRUBY_EXTS=$(LIBRUBY_EXTS) \ - ENCOBJS="$(ENCOBJS)" UPDATE_LIBRARIES=no $(EXTSTATIC) + EXTENCS="$(ENCOBJS)" UPDATE_LIBRARIES=no $(EXTSTATIC) prog: program wprogram Index: ruby_2_2/version.h =================================================================== --- ruby_2_2/version.h (revision 55930) +++ ruby_2_2/version.h (revision 55931) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1 #define RUBY_VERSION "2.2.6" #define RUBY_RELEASE_DATE "2016-08-16" -#define RUBY_PATCHLEVEL 359 +#define RUBY_PATCHLEVEL 360 #define RUBY_RELEASE_YEAR 2016 #define RUBY_RELEASE_MONTH 8 Property changes on: ruby_2_2 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r55434 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/