ruby-changes:43798
From: nagachika <ko1@a...>
Date: Fri, 12 Aug 2016 04:26:50 +0900 (JST)
Subject: [ruby-changes:43798] nagachika:r55871 (ruby_2_3): merge revision(s) 55434: [Backport #12401]
nagachika 2016-08-12 04:26:43 +0900 (Fri, 12 Aug 2016) New Revision: 55871 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55871 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_3/ Modified files: branches/ruby_2_3/ChangeLog branches/ruby_2_3/common.mk branches/ruby_2_3/ext/extmk.rb branches/ruby_2_3/version.h Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 55870) +++ ruby_2_3/version.h (revision 55871) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.2" #define RUBY_RELEASE_DATE "2016-08-12" -#define RUBY_PATCHLEVEL 151 +#define RUBY_PATCHLEVEL 152 #define RUBY_RELEASE_YEAR 2016 #define RUBY_RELEASE_MONTH 8 Index: ruby_2_3/ChangeLog =================================================================== --- ruby_2_3/ChangeLog (revision 55870) +++ ruby_2_3/ChangeLog (revision 55871) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1 +Fri Aug 12 04:15:10 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] + Fri Aug 12 04:04:23 2016 Nobuyoshi Nakada <nobu@r...> * process.c (rb_execarg_commandline): build command line string Index: ruby_2_3/common.mk =================================================================== --- ruby_2_3/common.mk (revision 55870) +++ ruby_2_3/common.mk (revision 55871) @@ -201,7 +201,7 @@ configure-ext: $(EXTS_MK) https://github.com/ruby/ruby/blob/trunk/ruby_2_3/common.mk#L201 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_3/ext/extmk.rb =================================================================== --- ruby_2_3/ext/extmk.rb (revision 55870) +++ ruby_2_3/ext/extmk.rb (revision 55871) @@ -697,12 +697,12 @@ if $configure_only and $command_output https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ext/extmk.rb#L697 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)"' @@ -720,14 +720,15 @@ if $configure_only and $command_output https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ext/extmk.rb#L720 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" Property changes on: ruby_2_3 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r55434 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/