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