diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-11-30 10:18:23 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-11-30 10:18:23 +0100 |
commit | c4ecfeec3c16a808350639e6b33f58966fbe038c (patch) | |
tree | 6376b894d273c32baaf01756854d83c4de612a0f | |
parent | dev-util/cmake-3.19.1: extend macOS GCC fix to (hypothetical) Fortran (diff) | |
download | gentoo-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>
-rw-r--r-- | sys-libs/binutils-libs/binutils-libs-2.35.1-r1.ebuild | 6 |
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 2ea275675426..ce1815ce5de2 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[@]}" |