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