diff options
-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" |