summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-31 12:18:14 +0900
committerGitHub <noreply@github.com>2022-03-31 12:18:14 +0900
commitecb6b964f6e6339417908e6b4b7838f2e507ab41 (patch)
tree53369bff052c10337819498c83c2bcba79f65cb3 /ext
parent47462e610cb7341b8338ae5bb1157491aec28eb1 (diff)
parenta4ffa066467eee8142dff816397f95c4998cc981 (diff)
downloadpsych-ecb6b964f6e6339417908e6b4b7838f2e507ab41.tar.gz
Merge pull request #553 from nobu/host-tool-prefix
Remove `unknown` vendor for cross-compiling tool prefix
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/extconf.rb2
1 files changed, 1 insertions, 1 deletions
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"