ruby-changes:46618
From: nobu <ko1@a...>
Date: Mon, 15 May 2017 20:32:40 +0900 (JST)
Subject: [ruby-changes:46618] nobu:r58733 (trunk): optional/capi: use LIBRUBYARG_SHARED
nobu 2017-05-15 20:32:35 +0900 (Mon, 15 May 2017) New Revision: 58733 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58733 Log: optional/capi: use LIBRUBYARG_SHARED * spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): use LIBRUBYARG_SHARED for LDSHARED. Modified files: trunk/spec/rubyspec/optional/capi/spec_helper.rb Index: spec/rubyspec/optional/capi/spec_helper.rb =================================================================== --- spec/rubyspec/optional/capi/spec_helper.rb (revision 58732) +++ spec/rubyspec/optional/capi/spec_helper.rb (revision 58733) @@ -83,7 +83,9 @@ def compile_extension(name) https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/spec_helper.rb#L83 ldshared = RbConfig::CONFIG["LDSHARED"] ldshared += " #{RbConfig::CONFIG["ARCH_FLAG"]}" if RbConfig::CONFIG["ARCH_FLAG"] - libs = "#{RbConfig::CONFIG["LIBRUBYARG"]} #{RbConfig::CONFIG["LIBS"]}" + libs = RbConfig::CONFIG["LIBRUBYARG_SHARED"] + libs += " " if libs + libs += RbConfig::CONFIG["LIBS"] dldflags = "#{RbConfig::CONFIG["LDFLAGS"]} #{RbConfig::CONFIG["DLDFLAGS"]} #{RbConfig::CONFIG["EXTDLDFLAGS"]}" dldflags.sub!(/-Wl,-soname,\S+/, '') dldflags.sub!(/\$\(DEFFILE\)/, '') -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/