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