summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-11-30 10:18:23 +0100
committerFabian Groffen <grobian@gentoo.org>2020-11-30 10:18:23 +0100
commitc4ecfeec3c16a808350639e6b33f58966fbe038c (patch)
tree6376b894d273c32baaf01756854d83c4de612a0f /sys-libs/binutils-libs
parentdev-util/cmake-3.19.1: extend macOS GCC fix to (hypothetical) Fortran (diff)
downloadgentoo-c4ecfeec3c16a808350639e6b33f58966fbe038c.tar.gz
gentoo-c4ecfeec3c16a808350639e6b33f58966fbe038c.tar.bz2
gentoo-c4ecfeec3c16a808350639e6b33f58966fbe038c.zip
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@gentoo.org>
Diffstat (limited to 'sys-libs/binutils-libs')
-rw-r--r--sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild6
1 files changed, 6 insertions, 0 deletions
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[@]}"