Skip to content

Shrink output tarballs - #279

Merged
WyattBlue merged 1 commit into
masterfrom
patch
Nov 8, 2026
Merged

WyattBlue merged 1 commit into
masterfrom
patch

Conversation

@WyattBlue

@WyattBlue WyattBlue commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Strip the real shared libraries instead of the lib*.so symlinks. On the cross builds (armv7l, ppc64le, riscv64), llvm-strip replaced each symlink with a stripped copy and left the versioned library unstripped, roughly doubling those tarballs.
  • Leave out files that consumers linking against FFmpeg don't need: static .a archives (Windows .dll.a import libs are kept), non-FFmpeg headers, and libatopology, libwebpdecoder and libwebpdemux, which nothing links against.

Expected sizes (measured by repacking the 9.0.2-3 release)

Tarball Before After
manylinux-ppc64le 62.1 MB ~26.9 MB
manylinux-armv7l 47.6 MB ~19.9 MB
manylinux-x86_64 32.4 MB ~28.7 MB
windows-x86_64 33.3 MB ~29.6 MB
macos-arm64 22.1 MB ~19.5 MB

Strip the real shared libraries instead of the lib*.so symlinks. On the
cross builds, llvm-strip replaced each symlink with a stripped copy and
left the versioned library unstripped, roughly doubling those tarballs.

Also leave out what consumers linking against FFmpeg do not need: static
archives, non-FFmpeg headers, and libatopology, libwebpdecoder and
libwebpdemux, which nothing links against.
@WyattBlue
WyattBlue merged commit 6f3eed7 into master Nov 8, 2026
14 checks passed
@WyattBlue
WyattBlue deleted the patch branch November 8, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant