summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2017-02-06 23:49:19 +0100
committerMaciej Mrozowski <reavertm@gentoo.org>2017-02-07 00:01:57 +0100
commitd9b6edbeec026d8f63ed278854526eebd5fb30e5 (patch)
treed74e044fe87370edbb3ede5497885b83be713647 /eclass
parentgames-simulation/flightgear: sync ebuilds with CMake (wrt options, also for s... (diff)
downloadgentoo-d9b6edbeec026d8f63ed278854526eebd5fb30e5.tar.gz
gentoo-d9b6edbeec026d8f63ed278854526eebd5fb30e5.tar.bz2
gentoo-d9b6edbeec026d8f63ed278854526eebd5fb30e5.zip
cmake-utils.eclass: set CMAKE_SYSTEM_PROCESSOR, certain buildsystems rely on this for crosscompiling. Patch by aballier, bug 607904
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake-utils.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 7b3500b1972e..512bd93c7b3a 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.