diff options
| author | James Le Cuirot <chewi@gentoo.org> | 2023-02-27 23:19:46 +0000 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-03-23 20:31:21 +0100 |
| commit | fa01350086b8d254a03250c6ffab5f2ed4de93b3 (patch) | |
| tree | e7ee79554e880ab1044f908ab82beb90c10ff355 /kde-apps/kde-dev-scripts/kde-dev-scripts-9999.ebuild | |
| parent | dfa1acfc797304d73d4014b0c2df7e849878c075 (diff) | |
| download | kde-fa01350086b8d254a03250c6ffab5f2ed4de93b3.tar.gz kde-fa01350086b8d254a03250c6ffab5f2ed4de93b3.tar.bz2 kde-fa01350086b8d254a03250c6ffab5f2ed4de93b3.zip | |
cmake.eclass: Set CMAKE_SYSROOT in toolchain file when necessary
We previously set CMAKE_FIND_ROOT_PATH, but CMAKE_SYSROOT also sets this
and more. The latter is needed when cross-compiling Fortran code such as
sci-libs/lapack. Without this, it uses the toolchain's default sysroot,
adds a -L/usr/${CHOST}/usr/lib flag based on that, reads the libc.so.6
ld script from this directory, does not apply any sysroot to the paths
within because the script is outside the sysroot, and finally fails when
attempting to link the host's libc.so.6.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/kde-dev-scripts/kde-dev-scripts-9999.ebuild')
0 files changed, 0 insertions, 0 deletions
