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