Closes: https://bugs.gentoo.org/677676
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
# do NOT mess with nsl, on Solaris this is always necessary,
# when -lsocket is used e.g. to get h_errno
sed -i '/gentoo\/no-nsl\.patch/d' "${WORKDIR}/patches/series" || die
- # and set a soname
- sed -i 's/sunos\*/sunos*|solaris*/' Makefile.SH || die
fi
einfo "Applying patches from ${PATCH_BASE} ..."
sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die
fi
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # set a soname, fix linking against just built libperl
+ sed -i -e 's/netbsd\*/netbsd*|solaris*/' Makefile.SH || die
+ fi
+
default
}
# do NOT mess with nsl, on Solaris this is always necessary,
# when -lsocket is used e.g. to get h_errno
sed -i '/gentoo\/no-nsl\.patch/d' "${WORKDIR}/patches/series" || die
- # and set a soname
- sed -i 's/sunos\*/sunos*|solaris*/' Makefile.SH || die
fi
einfo "Applying patches from ${PATCH_BASE} ..."
sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die
fi
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # set a soname, fix linking against just built libperl
+ sed -i -e 's/netbsd\*/netbsd*|solaris*/' Makefile.SH || die
+ fi
+
default
}