diff --git a/stages/50-x264.sh b/stages/50-x264.sh index 13efc95..5ed9ab0 100644 --- a/stages/50-x264.sh +++ b/stages/50-x264.sh @@ -4,7 +4,7 @@ echo "Download x264..." mkdir -p x264 # renovate: depName=https://code.videolan.org/videolan/x264.git -_commit='c196240409e4d7c01b47448d93b1f9683aaa7cf7' +_commit='4815ccadb1890572f2bf8b9d9553d56f6c9122ad' # Using master due to aarch64 improvements curl_tar "https://code.videolan.org/videolan/x264/-/archive/${_commit}/x264.tar.bz2" x264 1 @@ -59,6 +59,13 @@ env RC="$WINDRES" ./configure \ echo '--disable-win32thread' ;; esac + + case "$TARGET" in + aarch64-*) + # Required for the aarch64 assembly to be compiled correctly + echo '--extra-asflags=-march=armv8.2-a+sve+sve2' + ;; + esac ) \ --enable-pic \ --enable-static \