commit: d9b6edbeec026d8f63ed278854526eebd5fb30e5
Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 6 22:49:19 2017 +0000
Commit: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
CommitDate: Mon Feb 6 23:01:57 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9b6edbe
cmake-utils.eclass: set CMAKE_SYSTEM_PROCESSOR, certain buildsystems rely on
this for crosscompiling. Patch by aballier, bug 607904
eclass/cmake-utils.eclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 7b3500b..512bd93 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -538,6 +538,7 @@ enable_cmake-utils_src_configure() {
SET (CMAKE_Fortran_COMPILER "${myFC/ /;}")
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)
+ SET (CMAKE_SYSTEM_PROCESSOR "${CHOST%%-*}")
_EOF_
# We are using the C compiler for assembly by default.