#2706·iced

Impossible to disable dynamic linking on musl target

Author: zinifierCreated Dec 24, 2024Updated Sep 20, 2026
Labelsbug

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

I couldn't find a feature flag (or lack thereof) to enable static linking of the whole application. The application crashes with a NoWaylandLib error like mentioned in #2385, but the error is not related to nix.

What is the expected behavior?

iced should by default link statically, and enable dynamic linking with an optional feature. It's useful to use dynamic linking in many cases, but when compiling to a musl target for portable binaries (such as appimages) it makes no sense.

Version

master

Operating System

Linux

Do you have any log output?

No response