summaryrefslogtreecommitdiff
path: root/ext/psych/extconf.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-01 12:38:47 +0900
committergit <svn-admin@ruby-lang.org>2022-04-04 16:06:16 +0900
commit57377e5d537c78bab4201a730cf3ab04a3085f6a (patch)
treeac20ab078c6fa15d4ce8b4209509bce9fb9edbe3 /ext/psych/extconf.rb
parentde427c3ce0368ed075b09dac95f8e8a01fce8673 (diff)
[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
Diffstat (limited to 'ext/psych/extconf.rb')
-rw-r--r--ext/psych/extconf.rb1
1 files changed, 1 insertions, 0 deletions
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(' '))