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

Detect statically linked musl using the crt-static target feature, not target_vendor=alpine #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomcc
Copy link

@thomcc thomcc commented Jan 9, 2023

Someone reported a bug in the rust-lang zulip about your crate. I happened to notice that you're detecting statically linked musl the wrong way (or, a way that doesn't handle all cases), which is the cause of their bug. This probably fixes the issue for them, so long as they also provide some rustflags when compiling (specifically RUSTFLAGS=-Ctarget-feature=-crt-static to turn off static CRT).

That said, this is extremely a driveby, I haven't tested it beyond being confident that this doesn't break the existing use case, as the alpine target doesn't set crt-static.

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