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:
parent
de427c3ce0
commit
57377e5d53
1 changed files with 1 additions and 0 deletions
|
@ -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(' '))
|
||||
|
|
Loading…
Add table
Reference in a new issue