[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
@ -45,6 +45,7 @@ if yaml_source
|
|||||||
yaml_configure,
|
yaml_configure,
|
||||||
"--enable-#{shared ? 'shared' : 'static'}",
|
"--enable-#{shared ? 'shared' : 'static'}",
|
||||||
"--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}",
|
"--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}",
|
||||||
|
"CC=#{RbConfig::CONFIG['CC']}",
|
||||||
*(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"),
|
*(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"),
|
||||||
]
|
]
|
||||||
puts(args.quote.join(' '))
|
puts(args.quote.join(' '))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user