commit: b3fa78fce756ce172c4568aefd2bc08dcf5221dc Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Mon Mar 19 14:24:26 2018 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Mon Mar 19 14:24:26 2018 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b3fa78fc
sys-apps/coreutils: fix linking on ppc-macos Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6 sys-apps/coreutils/coreutils-8.29.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys-apps/coreutils/coreutils-8.29.ebuild b/sys-apps/coreutils/coreutils-8.29.ebuild index 2a152c1656..6c8a9c89a4 100644 --- a/sys-apps/coreutils/coreutils-8.29.ebuild +++ b/sys-apps/coreutils/coreutils-8.29.ebuild @@ -69,6 +69,14 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-8.22-mint.patch # fixup libstdbuf non-libtool stuff if [[ ${CHOST} == *-darwin* ]] ; then + if [[ ${CHOST} == *-darwin9* ]] ; then + # we need replacement libs from libcoreutils.a here in order + # to finish the linking + sed -i \ + -e "/src_libstdbuf_so_LDADD/s:$:lib/libcoreutils.a:" \ + Makefile.in \ + || die + fi sed -i \ -e "/src_libstdbuf_so_LDFLAGS = -shared/s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/libexec/coreutils/libstdbuf.dylib:" \ Makefile.in \