From 25fcea2f8aaba4520d635434f76f3a751d5dff6c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 16 Feb 2017 18:09:47 -0500 Subject: [PATCH] app-arch/pixz: fix cross-compiles --- app-arch/pixz/pixz-1.0.6.ebuild | 3 +++ app-arch/pixz/pixz-9999.ebuild | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app-arch/pixz/pixz-1.0.6.ebuild b/app-arch/pixz/pixz-1.0.6.ebuild index 63553def5565..7e31c748a8b9 100644 --- a/app-arch/pixz/pixz-1.0.6.ebuild +++ b/app-arch/pixz/pixz-1.0.6.ebuild @@ -36,6 +36,9 @@ src_prepare() { src_configure() { use static && append-ldflags -static append-flags -std=gnu99 + # Workaround silly logic that breaks cross-compiles. + # https://github.com/vasi/pixz/issues/67 + export ac_cv_file_src_pixz_1=$([[ -f src/pixz.1 ]] && echo yes || echo no) econf } diff --git a/app-arch/pixz/pixz-9999.ebuild b/app-arch/pixz/pixz-9999.ebuild index 63553def5565..7e31c748a8b9 100644 --- a/app-arch/pixz/pixz-9999.ebuild +++ b/app-arch/pixz/pixz-9999.ebuild @@ -36,6 +36,9 @@ src_prepare() { src_configure() { use static && append-ldflags -static append-flags -std=gnu99 + # Workaround silly logic that breaks cross-compiles. + # https://github.com/vasi/pixz/issues/67 + export ac_cv_file_src_pixz_1=$([[ -f src/pixz.1 ]] && echo yes || echo no) econf } -- 2.26.2