[Bug #20800] Move executable binary file path
From under "libexec", under `$(target)/bin` like as binutils.
This commit is contained in:
parent
303a52c201
commit
379bbd6d9c
Notes:
git
2024-11-09 12:50:57 +00:00
@ -34,7 +34,10 @@ vendordir = config["vendordir"]
|
||||
rubylibdir = config["rubylibdir"]
|
||||
rubyarchdir = config["rubyarchdir"]
|
||||
archdir = "#{extout}/#{arch}"
|
||||
exedir = libdirname == "archlibdir" ? "#{config["libexecdir"]}/#{arch}" : bindir
|
||||
exedir = bindir
|
||||
if libdirname == "archlibdir"
|
||||
exedir = exedir.sub(%r[/\K(?=[^/]+\z)]) {extout+"/"}
|
||||
end
|
||||
[exedir, libdir, archdir].uniq.each do |dir|
|
||||
File.directory?(dir) or mkdir_p(dir)
|
||||
end
|
||||
|
@ -367,11 +367,7 @@ goruby_install_name = "go" + ruby_install_name
|
||||
|
||||
bindir = CONFIG["bindir", true]
|
||||
if CONFIG["libdirname"] == "archlibdir"
|
||||
libexecdir = MAKEFILE_CONFIG["archlibdir"].dup
|
||||
unless libexecdir.sub!(/\$\(lib\K(?=dir\))/) {"exec"}
|
||||
libexecdir = "$(libexecdir)/$(arch)"
|
||||
end
|
||||
archbindir = RbConfig.expand(libexecdir)
|
||||
archbindir = bindir.sub(%r[/\K(?=[^/]+\z)]) {CONFIG["target"] + "/"}
|
||||
end
|
||||
libdir = CONFIG[CONFIG.fetch("libdirname", "libdir"), true]
|
||||
rubyhdrdir = CONFIG["rubyhdrdir", true]
|
||||
|
Loading…
x
Reference in New Issue
Block a user