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

mkrunnable.rb: fix DLL path on Windows

* tool/mkrunnable.rb: DLL needs placed at same directory as
  executables on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-01-02 02:41:06 +00:00
parent 243e581db0
commit d1cc0ebb38

View file

@ -104,7 +104,13 @@ goruby_install_name = "go" + ruby_install_name
ln_relative(ruby, "#{bindir}/#{ruby}")
end
end
libruby = config.values_at("LIBRUBY_A", "LIBRUBY_SO")
so = config["LIBRUBY_SO"]
libruby = [config["LIBRUBY_A"]]
if /\.dll\z/i =~ so
ln_relative(so, "#{bindir}/#{so}")
else
libruby << so
end
libruby.concat(config["LIBRUBY_ALIASES"].split)
libruby.each {|lib|ln_relative(lib, "#{libdir}/#{lib}")}
ln_dir_relative("#{extout}/common", rubylibdir)