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

bug: Static linking does not work on Fedora #30

Open
Arcitec opened this issue Aug 25, 2024 · 1 comment
Open

bug: Static linking does not work on Fedora #30

Arcitec opened this issue Aug 25, 2024 · 1 comment

Comments

@Arcitec
Copy link

Arcitec commented Aug 25, 2024

I am building a project which uses rust-lzma in "static" mode:

https://github.com/crazystylus/otadump

On Fedora 40, it errors with:

error: could not find native static library `lzma`, perhaps an -L flag is missing?

error: could not compile `rust-lzma` (lib) due to 1 previous error

I changed the rust-lzma line to remove the "features: static":

rust-lzma = "0.6.0"

Now it builds.

I am guessing the issue is something small, but I can't spot the error in the pull request which added static linking.

Related pull request: #29

@ajeetdsouza
Copy link

That's because you need to install xz-static. The statically linked lib is different from the (default) dynamically linked one.

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

No branches or pull requests

2 participants