[前][次][番号順一覧][スレッド一覧]

ruby-changes:71573

From: Nobuyoshi <ko1@a...>
Date: Thu, 31 Mar 2022 12:18:39 +0900 (JST)
Subject: [ruby-changes:71573] 217cea7812 (master): [ruby/psych] Remove `unknown` vendor for cross-compiling tool prefix

https://git.ruby-lang.org/ruby.git/commit/?id=217cea7812

From 217cea78129174bc964a94e4df547ead0d2f526a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 31 Mar 2022 12:11:30 +0900
Subject: [ruby/psych] Remove `unknown` vendor for cross-compiling tool prefix

https://github.com/ruby/psych/commit/a4ffa06646
---
 ext/psych/extconf.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 5c936c32b4..f7e610ce88 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -41,7 +41,7 @@ if yaml_source https://github.com/ruby/ruby/blob/trunk/ext/psych/extconf.rb#L41
   Dir.mkdir(yaml) unless File.directory?(yaml)
   unless system(yaml_configure, "-q",
                 "--enable-#{$enable_shared || !$static ? 'shared' : 'static'}",
-                "--host=#{RbConfig::CONFIG['host']}",
+                "--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}",
                 *(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"),
                 chdir: yaml)
     raise "failed to configure libyaml"
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]