Attaching an updated patch with the changes suggested by upstream. Adrian
-- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
From: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> Date: Sun, 31 Jul 2016 13:20:50 +0200 Subject: Don't try to build with Altivec support on powerpcspe Closes: #732368 https://bugzilla.mozilla.org/show_bug.cgi?id=972945 --- --- firefox-47.0.1.orig/gfx/qcms/moz.build +++ firefox-47.0.1/gfx/qcms/moz.build @@ -33,7 +33,7 @@ if '86' in CONFIG['OS_TEST']: else: use_sse1 = True elif 'ppc' in CONFIG['CPU_ARCH']: - if CONFIG['GNU_CC']: + if CONFIG['GNU_CC'] and CONFIG['USE_ALTIVEC']: use_altivec = True if use_sse1: --- firefox-47.0.1.orig/gfx/qcms/transform.c +++ firefox-47.0.1/gfx/qcms/transform.c @@ -1296,7 +1296,7 @@ qcms_transform* qcms_transform_create( #endif } else #endif -#if (defined(__POWERPC__) || defined(__powerpc__)) +#if (defined(__POWERPC__) || defined(__powerpc__)) && !defined(__NO_FPRS__)) if (have_altivec()) { if (in_type == QCMS_DATA_RGB_8) transform->transform_fn = qcms_transform_data_rgb_out_lut_altivec; --- firefox-47.0.1.orig/old-configure.in +++ firefox-47.0.1/old-configure.in @@ -1116,6 +1116,9 @@ powerpc64 | ppc64 | powerpc64le | ppc64l ;; powerpc | ppc | rs6000) + if test "$GNU_CC" && test -z "$(echo | $CC -x c -c -maltivec - 2>&1)" ; then + USE_ALTIVEC=1 + fi CPU_ARCH=ppc ;;