diff options
Diffstat (limited to 'sys-libs/musl/musl-9999.ebuild')
-rw-r--r-- | sys-libs/musl/musl-9999.ebuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-libs/musl/musl-9999.ebuild b/sys-libs/musl/musl-9999.ebuild index 5736eadc0fb4..6a5e2688dd5a 100644 --- a/sys-libs/musl/musl-9999.ebuild +++ b/sys-libs/musl/musl-9999.ebuild @@ -121,7 +121,7 @@ src_install() { # and print $(ARCH)$(SUBARCH). local arch=$(awk '{ k[$1] = $3 } END { printf("%s%s", k["ARCH"], k["SUBARCH"]); }' config.mak) - if [[ ! -e "${D}"/lib/ld-musl-${arch}.so.1 ]] ; then + if [[ ! -e "${ED}"/lib/ld-musl-${arch}.so.1 ]] ; then # During cross (using crossdev), when emerging sys-libs/musl, # if /usr/lib/libc.so.1 doesn't exist on the system, installation # would fail. @@ -131,13 +131,13 @@ src_install() { # During cross, there's no guarantee that the host is using musl # so that file may not exist. Use a relative symlink within ${D} # instead. - dosym8 -r /usr/lib/libc.so.1 /lib/ld-musl-${arch}.so.1 + dosym8 -r /usr/lib/libc.so /lib/ld-musl-${arch}.so.1 # If it's still a dead symlnk, OK, we really do need to abort. - [[ -e "${D}"/lib/ld-musl-${arch}.so.1 ]] || die + [[ -e "${ED}"/lib/ld-musl-${arch}.so.1 ]] || die fi - cp "${FILESDIR}"/ldconfig.in "${T}" || die + cp "${FILESDIR}"/ldconfig.in-r1 "${T}"/ldconfig.in || die sed -e "s|@@ARCH@@|${arch}|" "${T}"/ldconfig.in > "${T}"/ldconfig || die into / dosbin "${T}"/ldconfig |