f1b26c
diff -up firefox-78.2.0/mozglue/build/ppc.cpp.ppc-vsx firefox-78.2.0/mozglue/build/ppc.cpp
f1b26c
--- firefox-78.2.0/mozglue/build/ppc.cpp.ppc-vsx	2020-09-11 07:07:05.850864720 +0200
f1b26c
+++ firefox-78.2.0/mozglue/build/ppc.cpp	2020-09-11 07:08:48.884202679 +0200
f1b26c
@@ -14,10 +14,6 @@
f1b26c
 #if defined(XP_LINUX)
f1b26c
 // Use the getauxval() function if available.
f1b26c
 // ARCH_3_00 wasn't defined until glibc 2.23, so include just in case.
f1b26c
-#  include <sys/auxv.h>
f1b26c
-#  ifndef PPC_FEATURE2_ARCH_3_00
f1b26c
-#    define PPC_FEATURE2_ARCH_3_00 0x00800000
f1b26c
-#  endif
f1b26c
 #endif
f1b26c
 
f1b26c
 const unsigned PPC_FLAG_VMX = 1;
f1b26c
@@ -33,24 +29,8 @@ static signed get_ppc_cpu_flags(void) {
f1b26c
   }
f1b26c
   cpu_flags = 0;
f1b26c
 
f1b26c
-#if defined(XP_LINUX)
f1b26c
-  // Try getauxval().
f1b26c
-  unsigned long int cap = getauxval(AT_HWCAP);
f1b26c
-  unsigned long int cap2 = getauxval(AT_HWCAP2);
f1b26c
-
f1b26c
-  if (cap & PPC_FEATURE_HAS_ALTIVEC) {
f1b26c
-    cpu_flags |= PPC_FLAG_VMX;
f1b26c
-  }
f1b26c
-  if (cap & PPC_FEATURE_HAS_VSX) {
f1b26c
-    cpu_flags |= PPC_FLAG_VSX;
f1b26c
-  }
f1b26c
-  if (cap2 & PPC_FEATURE2_ARCH_3_00) {
f1b26c
-    cpu_flags |= PPC_FLAG_VSX3;
f1b26c
-  }
f1b26c
-#else
f1b26c
   // Non-Linux detection here. Currently, on systems other than Linux,
f1b26c
   // no CPU SIMD features will be detected.
f1b26c
-#endif
f1b26c
 
f1b26c
   return cpu_flags;
f1b26c
 }