Stream: t-compiler/help

Topic: musl-build-scripts


joey (Aug 04 2020 at 08:40, on Zulip):

Hi, I'm trying to help someone that is using musl as a target. They're compiling a project that uses bindgen, which looks like it attempts to dlopen libclang from the build script. This fails because a statically linked musl cannot dlopen. So I guess maybe build-scripts need to ignore crt-static, like proc macros do? https://github.com/rust-lang/rust/blob/master/src/librustc_session/session.rs#L684

joey (Aug 04 2020 at 09:13, on Zulip):

For example, Alpine linux seems to disable static linking by default, possibly for issues like this https://git.alpinelinux.org/aports/tree/community/rust/musl-dont-use-crt-static.patch?id=d554ddc0a6ebf4a9350b88ccbe27ac1091faba5f

Last update: Sep 28 2020 at 16:45UTC