diff options
author | Fabian Groffen <grobian@gentoo.org> | 2021-10-16 14:15:13 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2021-10-16 14:15:39 +0200 |
commit | 35bc9c8bbdf00b7aca254a4a1b5f622331548c0a (patch) | |
tree | ecbcf60d6503a0aa6857b153600269fbfcd33d59 /app-arch/gzip | |
parent | app-emulation/fs-uae-launcher: Version bump to 3.1.26, EAPI 8 (diff) | |
download | gentoo-35bc9c8bbdf00b7aca254a4a1b5f622331548c0a.tar.gz gentoo-35bc9c8bbdf00b7aca254a4a1b5f622331548c0a.tar.bz2 gentoo-35bc9c8bbdf00b7aca254a4a1b5f622331548c0a.zip |
app-arch/gzip-1.11: fix compilation on older Darwin
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'app-arch/gzip')
-rw-r--r-- | app-arch/gzip/gzip-1.11.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app-arch/gzip/gzip-1.11.ebuild b/app-arch/gzip/gzip-1.11.ebuild index b41b9f810670..395fb2de49bb 100644 --- a/app-arch/gzip/gzip-1.11.ebuild +++ b/app-arch/gzip/gzip-1.11.ebuild @@ -20,6 +20,15 @@ PATCHES=( "${FILESDIR}/${PN}-1.3.8-install-symlinks.patch" ) +src_prepare() { + default + if [[ ${CHOST} == *darwin* && ${CHOST##*darwin} -le 17 ]] ; then + # Fix older Darwin inline definition problem + sed -i -e '/define _GL_EXTERN_INLINE_STDHEADER_BUG/s/_BUG/_DISABLE/' \ + lib/config.hin || die + fi +} + src_configure() { use static && append-flags -static # avoid text relocation in gzip |