commit: 5132424e609fe2df9cd7916bc8dc4db70001b77d Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org> AuthorDate: Wed Nov 2 02:31:56 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Nov 27 11:42:39 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5132424e
cmake-utils.eclass: export CC/CXX/FC to environment, #542530 eclass/cmake-utils.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 1cf08cd..0528432 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -526,13 +526,13 @@ enable_cmake-utils_src_configure() { local toolchain_file=${BUILD_DIR}/gentoo_toolchain.cmake cat > ${toolchain_file} <<- _EOF_ || die - SET (CMAKE_C_COMPILER $(tc-getCC)) - SET (CMAKE_CXX_COMPILER $(tc-getCXX)) - SET (CMAKE_Fortran_COMPILER $(tc-getFC)) SET (CMAKE_AR $(type -P $(tc-getAR)) CACHE FILEPATH "Archive manager" FORCE) SET (CMAKE_RANLIB $(type -P $(tc-getRANLIB)) CACHE FILEPATH "Archive index generator" FORCE) _EOF_ + # Bug 542530, export those instead of setting paths in toolchain file + local -x CC=$(tc-getCC) CXX=$(tc-getCXX) FC=$(tc-getFC) + if tc-is-cross-compiler; then local sysname case "${KERNEL:-linux}" in