1 |
commit: d9b6edbeec026d8f63ed278854526eebd5fb30e5 |
2 |
Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 22:49:19 2017 +0000 |
4 |
Commit: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 23:01:57 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9b6edbe |
7 |
|
8 |
cmake-utils.eclass: set CMAKE_SYSTEM_PROCESSOR, certain buildsystems rely on this for crosscompiling. Patch by aballier, bug 607904 |
9 |
|
10 |
eclass/cmake-utils.eclass | 1 + |
11 |
1 file changed, 1 insertion(+) |
12 |
|
13 |
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
14 |
index 7b3500b..512bd93 100644 |
15 |
--- a/eclass/cmake-utils.eclass |
16 |
+++ b/eclass/cmake-utils.eclass |
17 |
@@ -538,6 +538,7 @@ enable_cmake-utils_src_configure() { |
18 |
SET (CMAKE_Fortran_COMPILER "${myFC/ /;}") |
19 |
SET (CMAKE_AR $(type -P $(tc-getAR)) CACHE FILEPATH "Archive manager" FORCE) |
20 |
SET (CMAKE_RANLIB $(type -P $(tc-getRANLIB)) CACHE FILEPATH "Archive index generator" FORCE) |
21 |
+ SET (CMAKE_SYSTEM_PROCESSOR "${CHOST%%-*}") |
22 |
_EOF_ |
23 |
|
24 |
# We are using the C compiler for assembly by default. |