[Bug #20800] Use config target for bin directory as-is
The "target" in `RbConfig::CONFIG` is being changed from config.sub to align to the system `uname`. Use the value modified by config.sub, and make the directory same as GNU utilities, such as binutils.
This commit is contained in:
parent
379bbd6d9c
commit
9588319e72
Notes:
git
2024-11-09 12:50:57 +00:00
@ -149,6 +149,7 @@ dnl checks for alternative programs
|
|||||||
AC_CANONICAL_BUILD
|
AC_CANONICAL_BUILD
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
AC_CANONICAL_TARGET
|
AC_CANONICAL_TARGET
|
||||||
|
AC_SUBST(config_target, $target)
|
||||||
AS_CASE(["$target_cpu-$target_os"],
|
AS_CASE(["$target_cpu-$target_os"],
|
||||||
[aarch64-darwin*], [
|
[aarch64-darwin*], [
|
||||||
target_cpu=arm64
|
target_cpu=arm64
|
||||||
|
@ -367,7 +367,7 @@ goruby_install_name = "go" + ruby_install_name
|
|||||||
|
|
||||||
bindir = CONFIG["bindir", true]
|
bindir = CONFIG["bindir", true]
|
||||||
if CONFIG["libdirname"] == "archlibdir"
|
if CONFIG["libdirname"] == "archlibdir"
|
||||||
archbindir = bindir.sub(%r[/\K(?=[^/]+\z)]) {CONFIG["target"] + "/"}
|
archbindir = bindir.sub(%r[/\K(?=[^/]+\z)]) {CONFIG["config_target"] + "/"}
|
||||||
end
|
end
|
||||||
libdir = CONFIG[CONFIG.fetch("libdirname", "libdir"), true]
|
libdir = CONFIG[CONFIG.fetch("libdirname", "libdir"), true]
|
||||||
rubyhdrdir = CONFIG["rubyhdrdir", true]
|
rubyhdrdir = CONFIG["rubyhdrdir", true]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user