Skip to content

Commit bf7ec01

Browse files
committed
crossdev: Symlink /lib to /usr/lib
That's what sys-apps/baselayout does for all systems, with and without multilib. Not doing so breaks behavior of several packages, including sys-libs/libcxx. Signed-off-by: Michal Rostecki <[email protected]>
1 parent cd67ec6 commit bf7ec01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crossdev

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,9 +1623,11 @@ LLVM="${LLVM}" emerge-wrapper --target ${CTARGET} --init || exit 1
16231623
### but gcc relies on their presence by refering to =/lib64 as
16241624
### =/usr/lib/../lib64 when builds itself (see https://bugs.gentoo.org/652724)
16251625
###
1626-
### Thus we create non-symlinked layout early.
1627-
xmkdir -p "${EPREFIX}"/usr/${CTARGET}/lib
1626+
### Thus we create the layout early.
16281627
xmkdir -p "${EPREFIX}"/usr/${CTARGET}/usr/lib
1628+
pushd "${EPREFIX}"/usr/${CTARGET} >/dev/null
1629+
ln -s usr/lib lib
1630+
popd >/dev/null
16291631
###
16301632
### We need some special riscv sauce here similar as in baselayout. Ugly.
16311633
### step 1: set up all multilib libdirs

0 commit comments

Comments
 (0)