Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/binutils-libs/
Date: Mon, 30 Nov 2020 09:18:37
Message-Id: 1606727903.c4ecfeec3c16a808350639e6b33f58966fbe038c.grobian@gentoo
1 commit: c4ecfeec3c16a808350639e6b33f58966fbe038c
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 09:18:23 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 09:18:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4ecfeec
7
8 sys-libs/binutils-libs-2.35.1-r1: fix build for Darwin with USE=nls
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12
13 sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16 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
17 index 2ea27567542..ce1815ce5de 100644
18 --- a/sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild
19 +++ b/sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild
20 @@ -98,6 +98,12 @@ multilib_src_configure() {
21 && myconf+=( --without-included-gettext ) \
22 || myconf+=( --disable-nls )
23
24 + if [[ ${CHOST} == *-darwin* ]] && use nls ; then
25 + # fix underlinking in opcodes
26 + sed -i -e 's/@SHARED_LDFLAGS@/@SHARED_LDFLAGS@ -lintl/' \
27 + "${S}"/opcodes/Makefile.in || die
28 + fi
29 +
30 ECONF_SOURCE=${S} \
31 econf "${myconf[@]}"