Open NobodyXu opened 1 year ago
See https://github.com/ziglang/zig/pull/11906, consider open a PR to filter it out like https://github.com/rust-cross/cargo-zigbuild/pull/97.
So the flag is added by cargo-auditable
, simply remove it might have other unintended effects?
Hmmm, it seems like so.
Not sure how this to approach this problem, cc @Shnatsel
The flag is needed to make sure the audit info is not removed by the linker. Without --undefined
the linker would notice that the symbol is never used and remove it.
It does seem like an instance of https://github.com/ziglang/zig/pull/11906. The flag should be simply forwarded to the linker as-is.
Is there any workaround? cc @Shnatsel @messense
We want to update ziglang v0.11 https://github.com/cargo-bins/cargo-binstall/pull/1564 but failed.
I believe this is an issue with Zig, and it needs to be modified to recognize this flag and pass it along to the linker. Other similar PRs dealing with linker flags:
https://github.com/ziglang/zig/pull/11679 https://github.com/ziglang/zig/pull/11875 https://github.com/ziglang/zig/pull/11874
I am not aware of any workarounds.
I will probably have to stay on ziglang v0.10 and instead zlib-ng on aarch64 to fix the error mentioned in #210
In CI of https://github.com/cargo-bins/cargo-quickinstall/pull/225 :
It runs the command: