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