Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 386664 Details for
Bug 503216
cmake-utils.eclass - fix cross-compile support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
cmake-utils.patch (text/plain), 2.54 KB, created by
Alexis Ballier
on 2014-10-14 09:05:47 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Alexis Ballier
Created:
2014-10-14 09:05:47 UTC
Size:
2.54 KB
patch
obsolete
>? < >Index: cmake-utils.eclass >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v >retrieving revision 1.110 >diff -u -B -r1.110 cmake-utils.eclass >--- cmake-utils.eclass 12 Aug 2014 14:58:40 -0000 1.110 >+++ cmake-utils.eclass 14 Oct 2014 08:59:50 -0000 >@@ -439,14 +439,44 @@ > cat > "${build_rules}" <<- _EOF_ > SET (CMAKE_AR $(type -P $(tc-getAR)) CACHE FILEPATH "Archive manager" FORCE) > SET (CMAKE_ASM_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> ${CFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "ASM compile command" FORCE) >- SET (CMAKE_C_COMPILER $(type -P $(tc-getCC)) CACHE FILEPATH "C compiler" FORCE) > SET (CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C compile command" FORCE) >- SET (CMAKE_CXX_COMPILER $(type -P $(tc-getCXX)) CACHE FILEPATH "C++ compiler" FORCE) > SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE) > SET (CMAKE_RANLIB $(type -P $(tc-getRANLIB)) CACHE FILEPATH "Archive index generator" 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 >+ cat > ${toolchain_file} <<- _EOF_ >+ SET (CMAKE_C_COMPILER $(tc-getCC)) >+ SET (CMAKE_CXX_COMPILER $(tc-getCXX)) >+ _EOF_ >+ >+ if tc-is-cross-compiler; then >+ local sysname >+ case "${KERNEL}" in >+ Cygwin) sysname="CYGWIN_NT-5.1" ;; >+ HPUX) sysname="HP-UX" ;; >+ Winnt) sysname="Windows" ;; >+ *) sysname="Linux" ;; >+ esac >+ >+ cat >> "${toolchain_file}" <<- _EOF_ >+ SET (CMAKE_SYSTEM_NAME "${sysname}") >+ _EOF_ >+ >+ if [ "${SYSROOT:-/}" != "/" ] ; then >+ # When cross-compiling with a sysroot (e.g. with crossdev's emerge wrappers) >+ # we need to tell cmake to use libs/headers from the sysroot but programs from / only. >+ cat >> "${toolchain_file}" <<- _EOF_ >+ set(CMAKE_FIND_ROOT_PATH "${SYSROOT}") >+ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) >+ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) >+ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) >+ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) >+ _EOF_ >+ fi >+ fi >+ > has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= > > if [[ ${EPREFIX} ]]; then >@@ -508,6 +538,7 @@ > -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" > -DCMAKE_INSTALL_DO_STRIP=OFF > -DCMAKE_USER_MAKE_RULES_OVERRIDE="${build_rules}" >+ -DCMAKE_TOOLCHAIN_FILE="${toolchain_file}" > "${MYCMAKEARGS}" > ) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 503216
:
371566
|
386594
|
386664
|
387312