mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fake.rb: set extout
* tool/fake.rb (prehook): set "extout" in RbConfig to configure extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb87580d5b
commit
9cd35c22ab
1 changed files with 2 additions and 0 deletions
|
@ -54,9 +54,11 @@ prehook = proc do |extmk|
|
|||
mkconfig = RbConfig::MAKEFILE_CONFIG
|
||||
mkconfig["builddir"] = config["builddir"] = builddir
|
||||
mkconfig["top_srcdir"] = $top_srcdir if $top_srcdir
|
||||
mkconfig["extout"] ||= $extout
|
||||
config["top_srcdir"] = File.expand_path($top_srcdir ||= top_srcdir)
|
||||
config["rubyhdrdir"] = join[$top_srcdir, "include"]
|
||||
config["rubyarchhdrdir"] = join[builddir, config["EXTOUT"], "include", config["arch"]]
|
||||
config["extout"] ||= join[$topdir, ".ext"]
|
||||
mkconfig["libdirname"] = "builddir"
|
||||
trace_var(:$ruby, posthook)
|
||||
untrace_var(:$extmk, prehook)
|
||||
|
|
Loading…
Add table
Reference in a new issue