[Bug #20800] Move executable binary file path

From under "libexec", under `$(target)/bin` like as binutils.
This commit is contained in:
Nobuyoshi Nakada 2024-11-09 19:58:44 +09:00
parent 303a52c201
commit 379bbd6d9c
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-11-09 12:50:57 +00:00
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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]