app-arch/pixz: fix cross-compiles
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Feb 2017 23:09:47 +0000 (18:09 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 16 Feb 2017 23:44:47 +0000 (18:44 -0500)
app-arch/pixz/pixz-1.0.6.ebuild
app-arch/pixz/pixz-9999.ebuild

index 63553def55654ff350be9cf8c5dabd665806cad2..7e31c748a8b9a291ed92e0e229f1b11f1f9c3697 100644 (file)
@@ -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
 }
 
index 63553def55654ff350be9cf8c5dabd665806cad2..7e31c748a8b9a291ed92e0e229f1b11f1f9c3697 100644 (file)
@@ -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
 }