diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-12-18 14:03:56 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-12-18 14:03:56 +0100 |
commit | 13fa9b1d62974d4f5572161ac560110ffcbd087b (patch) | |
tree | 018389e09eea2ebf0112d4f3c1b33d08858c6b6b /dev-libs/libffi | |
parent | profiles/prefix/darwin/macos/arch/arm64: fix pre_src_configure hook (diff) | |
download | gentoo-13fa9b1d62974d4f5572161ac560110ffcbd087b.tar.gz gentoo-13fa9b1d62974d4f5572161ac560110ffcbd087b.tar.bz2 gentoo-13fa9b1d62974d4f5572161ac560110ffcbd087b.zip |
dev-libs/libffi-3.3-r2: add fix for arm64-macos
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'dev-libs/libffi')
-rw-r--r-- | dev-libs/libffi/libffi-3.3-r2.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-libs/libffi/libffi-3.3-r2.ebuild b/dev-libs/libffi/libffi-3.3-r2.ebuild index 55138eb082d5..438d54d74f2a 100644 --- a/dev-libs/libffi/libffi-3.3-r2.ebuild +++ b/dev-libs/libffi/libffi-3.3-r2.ebuild @@ -39,6 +39,15 @@ S=${WORKDIR}/${MY_P} ECONF_SOURCE=${S} +src_prepare() { + default + if [[ ${CHOST} == arm64-*-darwin* ]] ; then + # ensure we use aarch64 asm, not x86 on arm64 + sed -i -e 's/aarch64\*-\*-\*/arm64*-*-*|&/' \ + configure configure.host || die + fi +} + multilib_src_configure() { use userland_BSD && export HOST="${CHOST}" # --includedir= path maintains a few properties: |