1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
Nobuyoshi Nakada 2022-04-01 12:38:47 +09:00 committed by git
parent de427c3ce0
commit 57377e5d53

View file

@ -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(' '))