Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link system liblz4 when available #39

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

musicinmybrain
Copy link

@musicinmybrain musicinmybrain commented Nov 15, 2023

This allows linking an external/system copy of liblz4 (particularly, a system-wide shared library as preferred or required for Linux distribution packaging), in the same manner as bzip2-sys, by imitating:

As noted in alexcrichton/bzip2-rs#58 (comment), some would consider changing the default linking of liblz4 a breaking change.

This PR is offered with the purpose of packaging the lz4-sys and lz4 crates in Fedora Linux, where bundling is discouraged, but allowed under certain circumstances.

This PR would fix #36.

Based on feedback in the Fedora Linux package review, I dropped the part of this PR that would have added a static feature akin to alexcrichton/bzip2-rs#78, but I did so by reverting it rather than force-pushing, so you can still see how it would have worked if you are interested.

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.

Link system liblz4?
1 participant