From 2d00c0c20332d61bc28733a70e41e3b6d87f5bb7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 1 Apr 2022 12:38:47 +0900 Subject: Propagate `CC` to libyaml It is needed for cross-compiling to set properly. Just `--target`/`--host`/`--build` seems insufficient on some platforms. --- 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 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(' ')) -- cgit v1.2.1