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

Jaroslav Kysela perex at perex.cz
Sun Jan 2 00:42:23 CET 2011

On Sat, 1 Jan 2011, Daniel Chen wrote:

> 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?

Yes, I believe, it's the right way to compile both types of library 


Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

More information about the Alsa-devel mailing list