wai-quantum-cli release: link the Linux binaries static, not static-pie #375
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-cli-release-static"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The first release run for the tag
wai-quantum-cli-v0.1.0(run 8811) built a dynamic PIE on x86_64 Linux, linked againstld-musl. The workflow's own static check refused it, and the run was cancelled.The cause: on musl, rustc asks the linker for
-static-pie, which thismusl-gcc's specs do not take, so it links a dynamic PIE. Without position-independent code, rustc asks for-static, which they do.The Linux build now sets
-C target-feature=+crt-static -C relocation-model=staticfor the target.RUSTFLAGSreach the target only, since--targetis given, so build scripts build for the host as before.Checked: the YAML parses. The fix is proven only by the release run itself, which runs on a tag. After this merges, the tag is moved to the new main commit. That commit differs from the published wai-quantum-cli 0.1.0 only in this workflow.
🤖 Generated with Claude Code