From 5a2722070bf8ebe0121b3f2778b703d061c2f126 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Sat, 9 Nov 2024 19:46:20 -0800 Subject: [PATCH] enable pic --- build-scripts/90-ffmpeg.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-scripts/90-ffmpeg.sh b/build-scripts/90-ffmpeg.sh index 3eb5dd3..e0d0c83 100755 --- a/build-scripts/90-ffmpeg.sh +++ b/build-scripts/90-ffmpeg.sh @@ -57,6 +57,9 @@ elif [[ "$RUNNER_OS" == "macOS" ]]; then # else to resolve this, and from my searches, it appears that others are not # having this problem with ffmpeg. This is still a problem with n7.1 PLATFORM_CONFIGURE_FLAGS="$PLATFORM_CONFIGURE_FLAGS --disable-x86asm --disable-inline-asm" + + # Enable position independent code (PIC). This resolved a crash on arm64. + PLATFORM_CONFIGURE_FLAGS="$PLATFORM_CONFIGURE_FLAGS --enable-pic" elif [[ "$RUNNER_OS" == "Windows" ]]; then # /usr/local/incude and /usr/local/lib are not in mingw's include # and linker paths by default, so add them.