From c8c4fcc92c1ea9fa63e21cdc2deffe2c35478409 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 11 Mar 2021 01:15:34 +0100 Subject: [PATCH] cabbage: fix build on ppc --- srcpkgs/cabbage/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/cabbage/template b/srcpkgs/cabbage/template index fd910797d5..9b650bccf5 100644 --- a/srcpkgs/cabbage/template +++ b/srcpkgs/cabbage/template @@ -26,6 +26,11 @@ checksum="0f446cf09177e559d2f2e9a77a78faed611cc869e219a7dc859a6e9b72eca64d de64ff1b5b40a7fdc2de873e80d911ffa9fd6b82435a555dda1e8edc267d1fa3" nocross="Projucer in template uses compiled binary" +# vsx accel stuff from libpng is not shipped +case "$XBPS_TARGET_MACHINE" in + ppc*) CXXFLAGS="-DPNG_POWERPC_VSX_OPT=0" ;; +esac + # without TARGET_ARCH, the build system will assume -march=native, # which is wrong as we're building a generic package and -march does # not even always work