From a4ffa066467eee8142dff816397f95c4998cc981 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 31 Mar 2022 12:11:30 +0900 Subject: Remove `unknown` vendor for cross-compiling tool prefix --- ext/psych/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 5c936c3..f7e610c 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -41,7 +41,7 @@ if yaml_source 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