From 57377e5d537c78bab4201a730cf3ab04a3085f6a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 1 Apr 2022 12:38:47 +0900 Subject: [PATCH] [ruby/psych] Propagate `CC` to libyaml It is needed for cross-compiling to set properly. Just `--target`/`--host`/`--build` seems insufficient on some platforms. https://github.com/ruby/psych/commit/2d00c0c203 --- ext/psych/extconf.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index ff8f61a450..795a0506ff 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -45,6 +45,7 @@ if yaml_source yaml_configure, "--enable-#{shared ? 'shared' : 'static'}", "--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}", + "CC=#{RbConfig::CONFIG['CC']}", *(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"), ] puts(args.quote.join(' '))