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

option to fully statically link targets #16

Open
mcandre opened this issue Mar 29, 2023 · 0 comments
Open

option to fully statically link targets #16

mcandre opened this issue Mar 29, 2023 · 0 comments

Comments

@mcandre
Copy link
Owner

mcandre commented Mar 29, 2023

Unfortunately, glibc support varies widely across different GNU/Linux distribution flavors and GNU/Linux distribution releases.

For example, RHEL tends to target older glibc versions, while Debian tends to support newer glibc versions. But even within Debian, each Debian release tends to support a different glibc version--and sid essentially targets a floating glibc version.

We can improve compatibility by building GNU/Linux binaries as fully static.

https://msfjarvis.dev/posts/building-static-rust-binaries-for-linux/

musl libc version is also likely to vary across the musl/Linux distribution flavors and musl/Linux distribution releases. Look into fully static linking for musl/Linux targets as well.

And same for Android targets.

@mcandre mcandre changed the title option to statically link glibc targets option to statically link linux targets Mar 29, 2023
@mcandre mcandre changed the title option to statically link linux targets option to fully statically link linux targets Mar 29, 2023
@mcandre mcandre changed the title option to fully statically link linux targets option to fully statically link targets Mar 29, 2023
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

1 participant