vezel-dev / zig-sdk

An MSBuild SDK for building Zig, C, and C++ projects using the Zig compiler.

Home Page:https://docs.vezel.dev/zig-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

musl is not always dynamically linked

alexrp opened this issue · comments

See:

.NET RIDs like linux-musl-x64 (and friends) are meant for systems with a dynamic musl libc, such as Alpine. Linking musl statically is not what we want and is likely to blow up in 'fun' ways. As a result, our support for musl-based RIDs for C/C++ code is effectively unusable right now (but should work fine for Zig code).

I think this is strictly an upstream Zig bug; we pass all the right flags on our end.

Need to try the workaround mentioned here: ziglang/zig#11909 (comment)

Need to try the workaround mentioned here: ziglang/zig#11909 (comment)

This appears to work. We can do this as a temporary workaround.

Also, as I noted in ziglang/zig#11909 (comment), this bug does not actually affect shared libraries.