[alsa-devel] [PATCH] ALSA: lib: Fix static linking of libasound

Daniel Chen seven.steps at gmail.com
Sat Jan 1 18:41:14 CET 2011


On Sat, Jan 1, 2011 at 10:07 AM, Jaroslav Kysela <perex at perex.cz> wrote:
> Is any reason to ignore this configure settings mentined in the INSTALL file
> for the static library build?
>
> ./configure --enable-shared=no --enable-static=yes
>
> It's mainly libtool issue and having static hacks in the dynamic library
> does not make much sense.

According to Samuel in the Debian bug report, "when both static &
dynamic linking is enabled, automake gets it wrong and uses only the
dynamic objects."

Is the best course of action here to do a two-pass build, one with
"--enable-shared=no --enable-static=yes" and another with
"--enable-shared=yes --enable-static=no", simply copying the desired
libasound.a from the second pass?

Thanks,
-Dan


More information about the Alsa-devel mailing list