summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-01 12:38:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-01 12:49:36 +0900
commit2d00c0c20332d61bc28733a70e41e3b6d87f5bb7 (patch)
treeff6c957b31f38466bf6b68103816a052f434d5ce /ext
parentc2e3c8579ccb9b08e7d3f95356d06197e0d29eaa (diff)
downloadpsych-2d00c0c20332d61bc28733a70e41e3b6d87f5bb7.tar.gz
Propagate `CC` to libyaml
It is needed for cross-compiling to set properly. Just `--target`/`--host`/`--build` seems insufficient on some platforms.
Diffstat (limited to 'ext')
-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 ff8f61a..795a050 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(' '))