diff options
author | Fabian Groffen <grobian@gentoo.org> | 2022-04-10 12:40:07 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2022-04-10 12:40:07 +0200 |
commit | ace109502422577c5c773346a9753566a52ad721 (patch) | |
tree | 193d4ccbc8007760c7f65b797626263b2b71348d /sys-libs/binutils-libs | |
parent | dev-python/editables: Keyword 0.2 for ~m68k (diff) | |
download | gentoo-ace109502422577c5c773346a9753566a52ad721.tar.gz gentoo-ace109502422577c5c773346a9753566a52ad721.tar.bz2 gentoo-ace109502422577c5c773346a9753566a52ad721.zip |
sys-libs/binutils-libs-2.38-r1: fix compilation on Darwin
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.38-r1.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys-libs/binutils-libs/binutils-libs-2.38-r1.ebuild b/sys-libs/binutils-libs/binutils-libs-2.38-r1.ebuild index 00524e029d8b..e4d12985ba3a 100644 --- a/sys-libs/binutils-libs/binutils-libs-2.38-r1.ebuild +++ b/sys-libs/binutils-libs/binutils-libs-2.38-r1.ebuild @@ -46,6 +46,15 @@ src_prepare() { # Fix cross-compile relinking issue, bug #626402 elibtoolize + if [[ ${CHOST} == *-darwin* ]] ; then + # somehow libtool/configure is messed up and (custom patch at + # upstream?) and misdetects (basically assumes) nm can be called + # with -B arg -- can't run eautoreconf (fails), so patch up + # manually, this would break any target that needs -B to nm + sed -i -e 's/lt_cv_path_NM="$tmp_nm -B"/lt_cv_path_NM="$tmp_nm"/' \ + libctf/configure || die + fi + default } |