mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
sys-libs/musl: fix -crypt build for cross
See https://forums.gentoo.org/viewtopic-p-8850196.html. We need to account for ${sysroot} for cross builds. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -140,8 +140,8 @@ src_install() {
|
||||
|
||||
if ! use crypt ; then
|
||||
# Allow sys-libs/libxcrypt[system] to provide it instead
|
||||
rm "${ED}/usr/include/crypt.h" || die
|
||||
rm "${ED}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
rm "${ED}${sysroot}/usr/include/crypt.h" || die
|
||||
rm "${ED}${sysroot}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
fi
|
||||
|
||||
if ! is_crosspkg ; then
|
||||
|
||||
@@ -141,8 +141,8 @@ src_install() {
|
||||
|
||||
if ! use crypt ; then
|
||||
# Allow sys-libs/libxcrypt[system] to provide it instead
|
||||
rm "${ED}/usr/include/crypt.h" || die
|
||||
rm "${ED}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
rm "${ED}${sysroot}/usr/include/crypt.h" || die
|
||||
rm "${ED}${sysroot}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
fi
|
||||
|
||||
if ! is_crosspkg ; then
|
||||
|
||||
@@ -142,8 +142,8 @@ src_install() {
|
||||
|
||||
if ! use crypt ; then
|
||||
# Allow sys-libs/libxcrypt[system] to provide it instead
|
||||
rm "${ED}/usr/include/crypt.h" || die
|
||||
rm "${ED}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
rm "${ED}${sysroot}/usr/include/crypt.h" || die
|
||||
rm "${ED}${sysroot}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
fi
|
||||
|
||||
if ! is_crosspkg ; then
|
||||
|
||||
@@ -138,8 +138,8 @@ src_install() {
|
||||
|
||||
if ! use crypt ; then
|
||||
# Allow sys-libs/libxcrypt[system] to provide it instead
|
||||
rm "${ED}/usr/include/crypt.h" || die
|
||||
rm "${ED}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
rm "${ED}${sysroot}/usr/include/crypt.h" || die
|
||||
rm "${ED}${sysroot}/usr/$(get_libdir)/libcrypt.a" || die
|
||||
fi
|
||||
|
||||
if ! is_crosspkg ; then
|
||||
|
||||
Reference in New Issue
Block a user