Summary: | ruby-fakegem.eclass: CC=$(tc-getCC) is ignored. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | konsolebox <konsolebox> |
Component: | Eclasses | Assignee: | Gentoo Ruby Team <ruby> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
konsolebox
2023-07-25 00:02:33 UTC
Come to think of it, only specifying CC in emake is wrong or is not enough since an extension may call try_compile or one of its variants during configuration. try_compile needs to use the same compiler specified to emake. The problem is ENV['CC'] is ignored by mkmf.rb and this can be reproduced by: $ CC=clang ruby -e 'puts RbConfig::expand("$(CC)")' gcc This can be hacked with the following command instead: $ CC=clang ruby -e 'RbConfig::CONFIG["CC"] = ENV["CC"]; puts RbConfig::expand("$(CC)")' clang Which I think is just plain illegal. |