diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-01 12:38:47 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-01 12:49:36 +0900 |
commit | 2d00c0c20332d61bc28733a70e41e3b6d87f5bb7 (patch) | |
tree | ff6c957b31f38466bf6b68103816a052f434d5ce | |
parent | c2e3c8579ccb9b08e7d3f95356d06197e0d29eaa (diff) | |
download | psych-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.
-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 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(' ')) |