diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-30 23:07:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 23:07:58 +0900 |
commit | 47462e610cb7341b8338ae5bb1157491aec28eb1 (patch) | |
tree | eb3890cb2e81fb7951220f41a6a5117229de91a6 | |
parent | 79d4b9961a0d33de7e840172083339bde4d90b59 (diff) | |
parent | 0e37e19707e42f1d313947eaad7b1f549fdee667 (diff) | |
download | psych-47462e610cb7341b8338ae5bb1157491aec28eb1.tar.gz |
Merge pull request #551 from nobu/cross
Propagate the host configuration to libyaml
-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 78456b5..5c936c3 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" |