mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
spec_helper.rb: libruby.so iff enable-shared
* spec/ruby/optional/capi/spec_helper.rb (compile_extension): search libruby.so only when enable-shared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8224002b81
commit
e1f834f9b4
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def compile_extension(name)
|
|||
ext = "#{name}_spec"
|
||||
lib = "#{object_path}/#{ext}.#{RbConfig::CONFIG['DLEXT']}"
|
||||
ruby_header = "#{RbConfig::CONFIG['rubyhdrdir']}/ruby.h"
|
||||
libruby_so = RbConfig::CONFIG['LIBRUBY_SO']
|
||||
libruby_so = RbConfig::CONFIG['LIBRUBY_SO'] if RbConfig::CONFIG["ENABLE_SHARED"] == "yes"
|
||||
|
||||
begin
|
||||
mtime = File.mtime(lib)
|
||||
|
|
Loading…
Reference in a new issue