1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fake.rb: set libdir

* tool/fake.rb: set "libdir" to build directory too, so that
  spec/ruby/optional/capi/spec_helper.rb can find libruby_so.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-12-27 01:26:22 +00:00
parent 79487218dd
commit 42c6ef00af

View file

@ -57,6 +57,7 @@ prehook = proc do |extmk|
mkconfig = RbConfig::MAKEFILE_CONFIG mkconfig = RbConfig::MAKEFILE_CONFIG
mkconfig["builddir"] = config["builddir"] = builddir mkconfig["builddir"] = config["builddir"] = builddir
mkconfig["buildlibdir"] = config["buildlibdir"] = builddir mkconfig["buildlibdir"] = config["buildlibdir"] = builddir
mkconfig["libdir"] = config["libdir"] = builddir
mkconfig["top_srcdir"] = $top_srcdir if $top_srcdir mkconfig["top_srcdir"] = $top_srcdir if $top_srcdir
mkconfig["extout"] ||= $extout mkconfig["extout"] ||= $extout
config["top_srcdir"] = File.expand_path($top_srcdir ||= top_srcdir) config["top_srcdir"] = File.expand_path($top_srcdir ||= top_srcdir)