Need help with MPD?
2 posts • Page 1 of 1
I'd like to experiment with running a statically compiled version of mpd on a minimalist (and mostly read-only) raspberry pi 0. Has anyone successfully done this with the meson+ninja build system? Can you help a brother out with some high level steps I would have to follow? I have a working build based on the current stable branch from git.
Yes, it is possible. To do this, you must first compile all dependencies as static libraries, and then link MPD with linker flag "-static", e.g. by prepending it as LDFLAGS to the Meson command:
None of this is MPD specific. This is true for all programs you wish to link statically.
Code: Select all
LDFFLAGS=-static meson ....