summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-04 16:06:00 +0900
committerGitHub <noreply@github.com>2022-04-04 16:06:00 +0900
commitca1b131b3ee5c649959e8f8c856487f795e3b28f (patch)
treeff6c957b31f38466bf6b68103816a052f434d5ce /ext
parentc2e3c8579ccb9b08e7d3f95356d06197e0d29eaa (diff)
parent2d00c0c20332d61bc28733a70e41e3b6d87f5bb7 (diff)
downloadpsych-ca1b131b3ee5c649959e8f8c856487f795e3b28f.tar.gz
Merge pull request #556 from nobu/libyaml-cc
Propagate `CC` to libyaml
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(' '))