gnu: cross-gcc: Add a "lib" output.
authorMathieu Othacehe <m.othacehe@gmail.com>
Sat, 14 Mar 2020 10:39:52 +0000 (11:39 +0100)
committerMathieu Othacehe <m.othacehe@gmail.com>
Tue, 24 Mar 2020 12:55:10 +0000 (13:55 +0100)
commit53de3e74fac862bc07de160e8e226372de213dd1
tree886b2053117b1d66524d07b2099c7924e5dad6d6
parent2e9c43aa9adac2bd6bcf92373d1cf9f322afa5a3
gnu: cross-gcc: Add a "lib" output.

Add a "lib" output to cross-gcc. This requires an upstream GCC patch adding
support for --with-toolexeclibdir configure option. This option allows to
install cross-built GCC libraries in a specific location.

This also fixes the computation of TOOLDIR_BASE_PREFIX, that fails when
/gnu/store/... directories are involved.

* gnu/packages/patches/gcc-7-cross-toolexeclibdir.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/cross-base.scm (cross-gcc)[source]: Apply it,
[outputs]: add a "lib" output,
(cross-gcc-snippet): fix TOOLDIR_BASE_PREFIX.
gnu/local.mk
gnu/packages/cross-base.scm
gnu/packages/patches/gcc-7-cross-toolexeclibdir.patch [new file with mode: 0644]