Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 371566 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]
cross-cmake-eclass.patch
cross-cmake-eclass.patch (text/plain), 1.60 KB, created by
James Le Cuirot
on 2014-03-02 16:07:18 UTC
(
hide
)
Description:
cross-cmake-eclass.patch
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2014-03-02 16:07:18 UTC
Size:
1.60 KB
patch
obsolete
>--- cmake-utils.eclass.orig 2014-02-08 02:01:16.000000000 +0000 >+++ cmake-utils.eclass 2014-02-18 00:00:17.869060428 +0000 >@@ -440,6 +440,7 @@ > 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_LINKER $(type -P $(tc-getLD)) CACHE FILEPATH "Linker" 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_ >@@ -493,6 +494,28 @@ > local warn_unused_cli="" > fi > >+ if tc-is-cross-compiler; then >+ local sysname >+ case "${KERNEL}" in >+ Cygwin) sysname="CYGWIN_NT-5.1" ;; >+ HPUX) sysname="HP-UX" ;; >+ linux) sysname="Linux" ;; >+ Winnt) sysname="Windows" ;; >+ *) sysname="${KERNEL}" ;; >+ esac >+ >+ local toolchain_file=${BUILD_DIR}/toolchain_file.cmake >+ cat > "${toolchain_file}" <<- _EOF_ >+ SET (CMAKE_SYSTEM_NAME "${sysname}") >+ SET (CMAKE_C_COMPILER $(type -P $(tc-getCC))) >+ SET (CMAKE_CXX_COMPILER $(type -P $(tc-getCXX))) >+ _EOF_ >+ >+ mycmakeargs_local+=( >+ -DCMAKE_TOOLCHAIN_FILE="${toolchain_file}" >+ ) >+ fi >+ > # Common configure parameters (overridable) > # NOTE CMAKE_BUILD_TYPE can be only overriden via CMAKE_BUILD_TYPE eclass variable > # No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect.
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