Files
packages/libs/libx264/patches/002-dont-default-to-cortex-a9-with-neon.patch
T
Daniel Golle 5c7efd6113 libx264: update to git HEAD of 2025-09-10
Changes since 2024-05-13:
 c24e06c2 configure: Check for SVE support in MS armasm64 via as_check
 3a8b5be2 aarch64: Use elf_aux_info() for CPU feature detection on FreeBSD/OpenBSD
 1243d9ff Provide x264_getauxval() wrapper for getauxvaul() and elf_aux_info()
 80c1c47c configure: Add DragonFly support
 3a21e97b Fix build with Android NDK and API < 24 for 32-bit targets
 b1d2de88 Use getauxval() on Linux and elf_aux_info() on FreeBSD/OpenBSD on arm/ppc
 da14df55 Make use of sysconf(3) _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF
 023112c6 aarch64: defines involving bit shifts should be unsigned
 938601b9 Use sysctlbyname(3) hw.logicalcpu on macOS
 a64111b1 Enable use of __sync_fetch_and_add() wherever detected instead of just X86
 450946f9 ci: Test compiling for Android
 52f7694d Use sched_getaffinity on Android
 373697b4 Bump dates to 2025
 c80f8a28 msvsdepend: Allow using the script for .S sources too
 27d83708 Makefile: Generate dependency information implicitly while compiling
 a0191bd8 configure: Use as_check for checking for aarch64 features
 72ce1cde configure: Use as_check for the main check for whether NEON is supported
 f87ca183 configure: Check for .arch and .arch_extension for enabling aarch64 extensions
 87044b21 aarch64: Use configure detected directives for enabling SVE/SVE2
 fc4012fb configure: Check for the dotprod and i8mm aarch64 extensions
 0e48d072 aarch64: Add flags for runtime detection of dotprod and i8mm
 570f6c70 aarch64: Add runtime detection of extensions on Windows and macOS
 fe9e4a7f Provide implementations for functions using the instructions SDOT/UDOT in the DotProd Armv8 extension.
 32c3b801 lavf: Update the code to work with the latest libavutil API
 4360ac37 ci: Fix ffmpeg build
 40617ddb ci: Remove vlc-contrib dependency
 85b5ccea Update gas-preprocessor.pl to the latest upstream version
 ff620d0c configure: Use MSYSTEM_CARCH for default arch on msys2
 714e07b4 arm: Don't test x264_cpu_fast_neon_mrc_test on Windows
 291476d7 windows: Fix named pipes detection
 b35605ac i8mm & neon hpel_filter optimization
 0480cb05 riscv64: add compile support

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 775c87e364)
2026-05-28 11:21:17 +02:00

29 lines
981 B
Diff

From a72bf499a0674fc75eedf15008b424e28f67e4bd Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei@gherzan.ro>
Date: Fri, 2 Feb 2018 15:10:08 +0200
Subject: [PATCH] dont default to cortex-a9 with neon
-march flag is not in CFLAGS so this will always default to
-mcpu=cortex-a8 -mfpu=neon.
Upstream-Status: Pending
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
configure | 3 ---
1 file changed, 3 deletions(-)
--- a/configure
+++ b/configure
@@ -1016,9 +1016,6 @@ if [ $asm = auto -a \( $ARCH = X86 -o $A
fi
if [ $asm = auto -a $ARCH = ARM ] ; then
- # set flags so neon is built by default
- [ $compiler == CL ] || echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon"
-
cc_check '' '' '__asm__("add r0, r1, r2");' && define HAVE_ARM_INLINE_ASM
if [ $compiler = CL ] && cpp_check '' '' 'defined(_M_ARM) && _M_ARM >= 7' ; then
define HAVE_ARMV6