# A musl (or any) build of Dwarf Fortress that works widely
[...] if I got this right, looks like
musl builds of linux software (
Nushell for example) simply work across [linux] OS versions (old an new), contrary to glibc (even if I don't have musl installed). I play the newer versions of DF using "wine" due to incompatibility of glibc libs, what is totally fine. But I think it would be better to have a "native" version that works widely.
And so I found that there exist already an old project of DF using
musl on versions 34.11, 40.04 and 40.13
here. It is built with old libs (2013-2016) and yet works on my debian. I hadn't noted before, but DF was listed on this
musl wiki page. Unfortunately the DF-musl project looks abandoned.
Another nice alternative would be an
AppImage container with all needed libs inside it.
Some more info:[src]: "An easier option is to build against musl, remove the DEPENDS with patchelf, and use that. There are a few incompatibilities with glibc (more on aarch64 than am64), but it's manageable (you might need to patch a few headers in musl and provide missing/incompatible functions). And you'll have a binary that works against musl and glibc both."
Footnote:I would prefer this than buy a new PC that supports a new version of my current OS (or a new OS for new hardware), and do this again every 2-5 years. I did this twice before, and I'll be obligated to do it again. Just non-sense consumerism.
Anyway, this is just a sugestion. If this leads to too much work, I will be fine using "wine".