Skip to content

Commit

Permalink
Fix cross-compilation by compiling zlib from source
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Oct 16, 2024
1 parent 79c3360 commit 1bf8bff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ if [[ "$BUILDARCH" == "amd64" && "$BUILDOS" == "linux" && "$GOARCH" == "arm64" &
export STRIP="llvm-strip-14"
export AR="llvm-ar-14"
export RANLIB="llvm-ranlib-14"
export CFLAGS="--target=aarch64-linux-gnu"
export LDFLAGS="--target=aarch64-linux-gnu"
EXTRA_CFLAGS="--target=aarch64-linux-gnu -I/usr/local/cuda_arm64/include $EXTRA_CFLAGS"
EXTRA_LDFLAGS="-fuse-ld=lld --target=aarch64-linux-gnu -L/usr/local/cuda_arm64/lib64 $EXTRA_LDFLAGS"
EXTRA_FFMPEG_FLAGS="$EXTRA_FFMPEG_FLAGS --arch=aarch64 --enable-cross-compile --cc=clang --strip=llvm-strip-14"
EXTRA_FFMPEG_FLAGS="$EXTRA_FFMPEG_FLAGS --arch=aarch64 --enable-cross-compile --cc=clang-14 --strip=llvm-strip-14"
HOST_OS="--host=aarch64-linux-gnu"
fi

Expand Down

0 comments on commit 1bf8bff

Please sign in to comment.