ruby-changes:38191
From: nagachika <ko1@a...>
Date: Mon, 13 Apr 2015 00:05:30 +0900 (JST)
Subject: [ruby-changes:38191] nagachika:r50272 (ruby_2_2): merge revision(s) 49007, 49009, 49957: [Backport #10960]
nagachika 2015-04-13 00:04:56 +0900 (Mon, 13 Apr 2015) New Revision: 50272 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50272 Log: merge revision(s) 49007,49009,49957: [Backport #10960] * ext/fiddle/extconf.rb: make PIC objects if it will be linked as a shared object eventually. [ruby-core:67128] * ext/fiddle/extconf.rb: needs --enable-shared when linked to libruby or fiddle.so. since --with-static-linked-ext does no longer link extensions to ruby program with --enable-shared, the only combination needs --enable-static is --disable-shared and --with-static-linked-ext. [ruby-dev:48901] [Bug #10960] Modified directories: branches/ruby_2_2/ Modified files: branches/ruby_2_2/ChangeLog branches/ruby_2_2/ext/fiddle/extconf.rb branches/ruby_2_2/ext/fiddle/win32/libffi.mk.tmpl branches/ruby_2_2/version.h Index: ruby_2_2/ChangeLog =================================================================== --- ruby_2_2/ChangeLog (revision 50271) +++ ruby_2_2/ChangeLog (revision 50272) @@ -1,3 +1,16 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1 +Sun Apr 12 23:53:33 2015 Nobuyoshi Nakada <nobu@r...> + + * ext/fiddle/extconf.rb: needs --enable-shared when linked to + libruby or fiddle.so. since --with-static-linked-ext does no + longer link extensions to ruby program with --enable-shared, the + only combination needs --enable-static is --disable-shared and + --with-static-linked-ext. [ruby-dev:48901] [Bug #10960] + +Sun Apr 12 23:53:33 2015 Nobuyoshi Nakada <nobu@r...> + + * ext/fiddle/extconf.rb: make PIC objects if it will be linked as + a shared object eventually. [ruby-core:67128] + Sun Mar 22 12:39:17 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> * spec/default.mspec: use default configuration file name. Index: ruby_2_2/ext/fiddle/win32/libffi.mk.tmpl =================================================================== --- ruby_2_2/ext/fiddle/win32/libffi.mk.tmpl (revision 50271) +++ ruby_2_2/ext/fiddle/win32/libffi.mk.tmpl (revision 50272) @@ -30,7 +30,7 @@ SRCDIR = $(TOPDIR)/src https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ext/fiddle/win32/libffi.mk.tmpl#L30 WORKDIR = ./.libs BUILDDIR= ./src LIBNAME = lib$(NAME) -STATICLIB= $(WORKDIR)/$(LIBNAME).$(LIBEXT) +STATICLIB= $(WORKDIR)/$(LIBNAME)_convenience.$(LIBEXT) HEADERS = \ ./fficonfig.h Index: ruby_2_2/ext/fiddle/extconf.rb =================================================================== --- ruby_2_2/ext/fiddle/extconf.rb (revision 50271) +++ ruby_2_2/ext/fiddle/extconf.rb (revision 50272) @@ -36,7 +36,7 @@ begin https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ext/fiddle/extconf.rb#L36 end libffi.include = "#{libffi.builddir}/include" libffi.lib = "#{libffi.builddir}/.libs" - libffi.a = "#{libffi.lib}/libffi.#{$LIBEXT}" + libffi.a = "#{libffi.lib}/libffi_convenience.#{$LIBEXT}" nowarn = CONFIG.merge("warnflags"=>"") libffi.cflags = RbConfig.expand("$(CFLAGS)", nowarn) ver = ver[/libffi-(.*)/, 1] @@ -64,9 +64,10 @@ begin https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ext/fiddle/extconf.rb#L64 ld = RbConfig::CONFIG['LD'] args.concat %W[ --srcdir=#{libffi.srcdir} - --disable-shared --host=#{libffi.arch} + --host=#{libffi.arch} --enable-builddir=#{RUBY_PLATFORM} ] + args << ($enable_shared || !$static ? '--enable-shared' : '--enable-static') args << libffi.opt if libffi.opt args.concat %W[ CC=#{cc} CFLAGS=#{libffi.cflags} Index: ruby_2_2/version.h =================================================================== --- ruby_2_2/version.h (revision 50271) +++ ruby_2_2/version.h (revision 50272) @@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1 #define RUBY_VERSION "2.2.2" -#define RUBY_RELEASE_DATE "2015-03-25" -#define RUBY_PATCHLEVEL 88 +#define RUBY_RELEASE_DATE "2015-04-12" +#define RUBY_PATCHLEVEL 89 #define RUBY_RELEASE_YEAR 2015 -#define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 25 +#define RUBY_RELEASE_MONTH 4 +#define RUBY_RELEASE_DAY 12 #include "ruby/version.h" Property changes on: ruby_2_2 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r49007,49009,49957 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/