summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-02-16 18:09:47 -0500
committerMike Frysinger <vapier@gentoo.org>2017-02-16 18:44:47 -0500
commit25fcea2f8aaba4520d635434f76f3a751d5dff6c (patch)
tree950b7ba1634c38d48b9f2c53bf847872bbe37a01 /app-arch/pixz
parentapp-arch/pixz: drop old 1.0.3 version (diff)
downloadgentoo-25fcea2f8aaba4520d635434f76f3a751d5dff6c.tar.gz
gentoo-25fcea2f8aaba4520d635434f76f3a751d5dff6c.tar.bz2
gentoo-25fcea2f8aaba4520d635434f76f3a751d5dff6c.zip
app-arch/pixz: fix cross-compiles
Diffstat (limited to 'app-arch/pixz')
-rw-r--r--app-arch/pixz/pixz-1.0.6.ebuild3
-rw-r--r--app-arch/pixz/pixz-9999.ebuild3
2 files changed, 6 insertions, 0 deletions
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
}