mozjs60/mozjs60-fix-armv6-build.patch
2024-02-28 21:27:12 +08:00

11 lines
685 B
Diff

--- firefox-52.6.0esr.orig/build/autoconf/arch.m4 2018-05-22 15:30:36.618747357 +0200
+++ firefox-52.6.0esr/build/autoconf/arch.m4 2018-05-22 15:30:59.518836761 +0200
@@ -216,7 +216,7 @@ if test "$CPU_ARCH" = "arm"; then
AC_MSG_CHECKING(ARM version support in compiler)
dnl Determine the target ARM architecture (5 for ARMv5, v5T, v5E, etc.; 6 for ARMv6, v6K, etc.)
- ARM_ARCH=`${CC-cc} ${CFLAGS} -dM -E - < /dev/null | sed -n 's/.*__ARM_ARCH_\([[0-9]][[0-9]]*\).*/\1/p'`
+ ARM_ARCH=`${CC-cc} ${CFLAGS} -dM -E - < /dev/null | sed -n 's/.*__ARM_ARCH_\([[0-9]][[0-9]]*\).*/\1/p' | head -n 1`
AC_MSG_RESULT("$ARM_ARCH")
AC_MSG_CHECKING(for ARM NEON support in compiler)