From 47b498ec6abf41814f1b7e3fde3d4c204e588b7c Mon Sep 17 00:00:00 2001 From: Gleb Fotengauer-Malinovskiy Date: Thu, 11 Apr 2019 22:31:57 +0300 Subject: [PATCH] ppc: disable vsx on little-endian systems altivec and vsx support is broken in this ffmpeg on little-endian systems. --- MPlayer/configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MPlayer/configure b/MPlayer/configure index 5b64cd3611..30357d0489 100755 --- a/MPlayer/configure +++ b/MPlayer/configure @@ -2711,16 +2711,16 @@ case "$host_arch" in fi # gcc 4.5 and up supports POWER7 if test "$_cc_major" -ge "4" && test "$_cc_minor" -ge "5" || test "$_cc_major" -ge "5"; then - case "$proc" in - POWER7*) _march='-mcpu=power7' _mcpu='-mtune=power7' + case "$proc$_big_endian" in + POWER7*yes) _march='-mcpu=power7' _mcpu='-mtune=power7' def_vsx='#define HAVE_VSX 1' ;; *) ;; esac fi # gcc 4.9 and up supports POWER8 if test "$_cc_major" -ge "4" && test "$_cc_minor" -ge "9" || test "$_cc_major" -ge "5"; then - case "$proc" in - POWER8*) _march='-mcpu=power8' _mcpu='-mtune=power8' + case "$proc$_big_endian" in + POWER8*yes) _march='-mcpu=power8' _mcpu='-mtune=power8' def_vsx='#define HAVE_VSX 1' ;; *) ;; esac -- 2.33.7