Skip to content

Strip debug symbols from lz4 build#323

Open
ypnos wants to merge 1 commit intopython-lz4:masterfrom
ypnos:feature/strip_library_files
Open

Strip debug symbols from lz4 build#323
ypnos wants to merge 1 commit intopython-lz4:masterfrom
ypnos:feature/strip_library_files

Conversation

@ypnos
Copy link

@ypnos ypnos commented Jan 12, 2026

When a wheel is built using lz4 library source files bundled with the package, we advise the linker to strip debug symbols from the binary output.

This leads to a significant size reduction of the wheel. Comparison of local build with lz4 1.10.0:

master      1324506 lz4-4.4.6.dev1+gd5daffd83-cp312-cp312-linux_x86_64.whl
this patch   294389 lz4-4.4.6.dev1+gd5daffd83.d20260112-cp312-cp312-linux_x86_64.whl

Fixes #305

When a wheel is built using lz4 library source files bundled with the package,
we advise the linker to strip debug symbols from the binary output.

This leads to a significant size reduction of the wheel.

Fixes python-lz4#305
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.

Package size due to nonstripped library files

2 participants