diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-30 22:51:54 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-03-30 23:08:13 +0900 |
commit | 75efbb98afe854972a1c832ec5d4d66639c41c74 (patch) | |
tree | eb8f8e72c3620433a823cb794eca62e07d8e4ccd /ext/psych | |
parent | dde164e968e382d50b07ad4559468885cbff33ef (diff) |
[ruby/psych] Propagate the host configuration to libyaml
https://github.com/ruby/psych/commit/0e37e19707
Diffstat (limited to 'ext/psych')
-rw-r--r-- | ext/psych/extconf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 78456b5687..5c936c32b4 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -41,6 +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']}", *(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"), chdir: yaml) raise "failed to configure libyaml" |