summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-11-27 12:26:19 +0100
committerMichał Górny <mgorny@gentoo.org>2016-11-27 12:42:43 +0100
commit66483a93354c105dd01ec5595e9ffdc870856de8 (patch)
treedd6e082d1b4f8afdb8531340891af4e90bad283e
parentcmake-utils.eclass: export CC/CXX/FC to environment, #542530 (diff)
downloadgentoo-66483a93354c105dd01ec5595e9ffdc870856de8.tar.gz
gentoo-66483a93354c105dd01ec5595e9ffdc870856de8.tar.bz2
gentoo-66483a93354c105dd01ec5595e9ffdc870856de8.zip
cmake-utils.eclass: Export PKG_CONFIG as envvar rather than build rule
-rw-r--r--eclass/cmake-utils.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 0528432d81eb..bf78cc30a880 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -521,7 +521,6 @@ enable_cmake-utils_src_configure() {
SET (CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> ${includes} ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C compile command" FORCE)
SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> ${includes} ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE)
SET (CMAKE_Fortran_COMPILE_OBJECT "<CMAKE_Fortran_COMPILER> <DEFINES> ${includes} ${FCFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "Fortran compile command" FORCE)
- SET (PKG_CONFIG_EXECUTABLE $(type -P $(tc-getPKG_CONFIG)) CACHE FILEPATH "pkg-config executable" FORCE)
_EOF_
local toolchain_file=${BUILD_DIR}/gentoo_toolchain.cmake
@@ -532,6 +531,7 @@ enable_cmake-utils_src_configure() {
# Bug 542530, export those instead of setting paths in toolchain file
local -x CC=$(tc-getCC) CXX=$(tc-getCXX) FC=$(tc-getFC)
+ local -x PKG_CONFIG=$(tc-getPKG_CONFIG)
if tc-is-cross-compiler; then
local sysname