commit:     c4ecfeec3c16a808350639e6b33f58966fbe038c
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 30 09:18:23 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 09:18:23 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4ecfeec

sys-libs/binutils-libs-2.35.1-r1: fix build for Darwin with USE=nls

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild 
b/sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild
index 2ea27567542..ce1815ce5de 100644
--- a/sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild
+++ b/sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild
@@ -98,6 +98,12 @@ multilib_src_configure() {
                && myconf+=( --without-included-gettext ) \
                || myconf+=( --disable-nls )
 
+       if [[ ${CHOST} == *-darwin* ]] && use nls ; then
+               # fix underlinking in opcodes
+               sed -i -e 's/@SHARED_LDFLAGS@/@SHARED_LDFLAGS@ -lintl/' \
+                       "${S}"/opcodes/Makefile.in || die
+       fi
+
        ECONF_SOURCE=${S} \
        econf "${myconf[@]}"
 

Reply via email to