FFmpeg build scripts: Support cross compiling x86_64 version from arm64

CQTexperiment
Christopher Snowhill 2021-08-25 01:25:32 -07:00
parent 48c43167b6
commit 49b0bc52b7
1 changed files with 3 additions and 2 deletions

View File

@ -4,8 +4,9 @@ set -e
# This is the commands used to build the ffmpeg libs provided here
./configure\
--extra-cflags="-fPIC -isysroot $(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.13"\
--extra-ldflags="-mmacosx-version-min=10.13"\
--arch=x86_64\
--extra-cflags="-arch x86_64 -fPIC -isysroot $(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.13"\
--extra-ldflags="-arch x86_64 -mmacosx-version-min=10.13"\
--enable-static --disable-shared\
--prefix="$1/x86_64"\
--incdir="$1/include"\