diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-31 12:11:30 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-03-31 12:18:28 +0900 |
commit | 217cea78129174bc964a94e4df547ead0d2f526a (patch) | |
tree | d3eb016c030c6a7bed054a5f324228fe84f981d3 /ext | |
parent | 663c297e34a04d0fcf12f317d7c9eb0ffbb5ef7f (diff) |
[ruby/psych] Remove `unknown` vendor for cross-compiling tool prefix
https://github.com/ruby/psych/commit/a4ffa06646
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 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" |