From 0e37e19707e42f1d313947eaad7b1f549fdee667 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 30 Mar 2022 22:51:54 +0900 Subject: Propagate the host configuration to libyaml --- ext/psych/extconf.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') 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" -- cgit v1.2.1