ruby-changes:40574
From: usa <ko1@a...>
Date: Thu, 19 Nov 2015 00:55:47 +0900 (JST)
Subject: [ruby-changes:40574] usa:r52653 (trunk): * ext/extmk.rb (--extflags): new option to pass EXTLDFLAGS to children,
usa 2015-11-19 00:55:39 +0900 (Thu, 19 Nov 2015) New Revision: 52653 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52653 Log: * ext/extmk.rb (--extflags): new option to pass EXTLDFLAGS to children, expecially exts.mk. * common.mk (EXTMK_ARGS): use above option. Modified files: trunk/ChangeLog trunk/common.mk trunk/ext/extmk.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 52652) +++ ChangeLog (revision 52653) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Nov 19 00:53:26 2015 NAKAMURA Usaku <usa@r...> + + * ext/extmk.rb (--extflags): new option to pass EXTLDFLAGS to children, + expecially exts.mk. + + * common.mk (EXTMK_ARGS): use above option. + Wed Nov 18 22:50:43 2015 Koichi Sasada <ko1@a...> * vm_method.c (rb_class_clear_method_cache): should clear all Index: common.mk =================================================================== --- common.mk (revision 52652) +++ common.mk (revision 52653) @@ -137,7 +137,8 @@ SCRIPT_ARGS = --dest-dir="$(DESTDIR)" https://github.com/ruby/ruby/blob/trunk/common.mk#L137 --mflags="$(MFLAGS)" \ --make-flags="$(MAKEFLAGS)" EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \ - --make-flags="V=$(V) MINIRUBY='$(MINIRUBY)'" --gnumake=$(gnumake) \ + --make-flags="V=$(V) MINIRUBY='$(MINIRUBY)'" \ + --gnumake=$(gnumake) --extflags="$(EXTLDFLAGS)" \ -- INSTRUBY = $(SUDO) $(RUNRUBY) -r./$(arch)-fake $(srcdir)/tool/rbinstall.rb INSTRUBY_ARGS = $(SCRIPT_ARGS) \ Index: ext/extmk.rb =================================================================== --- ext/extmk.rb (revision 52652) +++ ext/extmk.rb (revision 52653) @@ -369,6 +369,9 @@ def parse_args() https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L369 opts.on('--gnumake=yes|no', true) do |v| $gnumake = v end + opts.on('--extflags=FLAGS') do |v| + $extflags = v || "" + end end begin $optparser.parse!(ARGV) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/