1 |
commit: 751dab52267ca575a8689784f0687b099f6229d8 |
2 |
Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 7 17:25:45 2017 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 7 17:25:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=751dab52 |
7 |
|
8 |
cmake-utils.eclass: set CMAKE_SYSTEM_PROCESSOR |
9 |
|
10 |
Certain build systems rely on this for crosscompiling. |
11 |
Patch by aballier. |
12 |
|
13 |
Gentoo-bug: 607904 |
14 |
|
15 |
eclass/cmake-utils.eclass | 1 + |
16 |
1 file changed, 1 insertion(+) |
17 |
|
18 |
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
19 |
index d7870c4..b1d499c 100644 |
20 |
--- a/eclass/cmake-utils.eclass |
21 |
+++ b/eclass/cmake-utils.eclass |
22 |
@@ -538,6 +538,7 @@ enable_cmake-utils_src_configure() { |
23 |
SET (CMAKE_Fortran_COMPILER "${myFC/ /;}") |
24 |
SET (CMAKE_AR $(type -P $(tc-getAR)) CACHE FILEPATH "Archive manager" FORCE) |
25 |
SET (CMAKE_RANLIB $(type -P $(tc-getRANLIB)) CACHE FILEPATH "Archive index generator" FORCE) |
26 |
+ SET (CMAKE_SYSTEM_PROCESSOR "${CHOST%%-*}") |
27 |
_EOF_ |
28 |
|
29 |
# We are using the C compiler for assembly by default. |