You don't have libasound.a
for -static
, you will need that, or you can almost certainly just remove -static
from the Makefile
(likely in LDFLAGS
or CFLAGS
).
There's is a related Debian bug 522544, and a related Ubuntu bug #993959.
You may be able to build your own libasound from source, though as it also uses other libraries (notably libpthread.so
, librt.so
and libdl.so
) I suspect it may remove some functionality when you build it statically, though it's supported with ./configure --enable-static
at build time
(or try --enable-shared=no --enable-static=yes
).
FWIW, the use of static binaries is "discouraged" by the glibc maintainers, though I don't agree...