Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 27 Nov 2016 11:42:51
Message-Id: 1480246957.0f90bcc5ad56689347ef72c398cd0c952c35d143.mgorny@gentoo
1 commit: 0f90bcc5ad56689347ef72c398cd0c952c35d143
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 11:17:22 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 27 11:42:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f90bcc5
7
8 cmake-utils.eclass: Move CMAKE_AR & CMAKE_RANLIB into toolchain defs
9
10 Move CMAKE_AR & CMAKE_RANLIB definitions into the toolchain file. It
11 seems to make more sense there than in build rules.
12
13 eclass/cmake-utils.eclass | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
17 index 393ee28..1cf08cd 100644
18 --- a/eclass/cmake-utils.eclass
19 +++ b/eclass/cmake-utils.eclass
20 @@ -517,12 +517,10 @@ enable_cmake-utils_src_configure() {
21 includes="<INCLUDES>"
22 fi
23 cat > "${build_rules}" <<- _EOF_ || die
24 - SET (CMAKE_AR $(type -P $(tc-getAR)) CACHE FILEPATH "Archive manager" FORCE)
25 SET (CMAKE_ASM_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> ${includes} ${CFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "ASM compile command" FORCE)
26 SET (CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> ${includes} ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C compile command" FORCE)
27 SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> ${includes} ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE)
28 SET (CMAKE_Fortran_COMPILE_OBJECT "<CMAKE_Fortran_COMPILER> <DEFINES> ${includes} ${FCFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "Fortran compile command" FORCE)
29 - SET (CMAKE_RANLIB $(type -P $(tc-getRANLIB)) CACHE FILEPATH "Archive index generator" FORCE)
30 SET (PKG_CONFIG_EXECUTABLE $(type -P $(tc-getPKG_CONFIG)) CACHE FILEPATH "pkg-config executable" FORCE)
31 _EOF_
32
33 @@ -531,6 +529,8 @@ enable_cmake-utils_src_configure() {
34 SET (CMAKE_C_COMPILER $(tc-getCC))
35 SET (CMAKE_CXX_COMPILER $(tc-getCXX))
36 SET (CMAKE_Fortran_COMPILER $(tc-getFC))
37 + SET (CMAKE_AR $(type -P $(tc-getAR)) CACHE FILEPATH "Archive manager" FORCE)
38 + SET (CMAKE_RANLIB $(type -P $(tc-getRANLIB)) CACHE FILEPATH "Archive index generator" FORCE)
39 _EOF_
40
41 if tc-is-cross-compiler; then