Add artificial symlinks to musl package to ease its use.

This commit is contained in:
Andrius Štikonas 2023-01-21 02:00:36 +00:00
parent c1ed20adc8
commit 89c7c10b8e
2 changed files with 6 additions and 1 deletions

View file

@ -31,4 +31,9 @@ src_install() {
# Add library search path configurtion
mkdir -p "${DESTDIR}/etc"
cp ld-musl-i386.path "${DESTDIR}/etc"
# Re-add /bin and /lib symlinks here so that binary package
# is self-contained and usable outside live-bootstrap
ln --symbolic --relative "${DESTDIR}/${PREFIX}/lib" "${DESTDIR}/lib"
ln --symbolic --relative "${DESTDIR}/${PREFIX}/bin" "${DESTDIR}/bin"
}