mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
optional/capi: use LIBRUBYARG_SHARED
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): use LIBRUBYARG_SHARED for LDSHARED. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dc65024475
commit
bb03a2db5c
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ def compile_extension(name)
|
|||
|
||||
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\)/, '')
|
||||
|
|
Loading…
Add table
Reference in a new issue