At Wed, 28 Mar 2007 10:06:01 -0700, John Utz wrote:
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Wed 3/28/2007 3:13 AM To: John Utz Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] is statically linking libasound supported? because if i do it, i cant open the device!
At Tue, 27 Mar 2007 18:05:50 -0700, John Utz wrote:
but it fails to find hw:0,1 if i link it statically, is that expected behavior?
Did you check alsa-lib/INSTALL file? For creating a static lib, you have to use --disable-shared _and_ --enable-static.
Why would i need to --disable-shared? i wanted both!
You cannot build both *.a and *.so _at the same time_ for alsa-lib. partly because of bad behavior of libtool, partly because of the design of alsa-lib (embedded plugins in static lib).
Simply build twice, once for a shared lib and once for a static lib.
I got the libasound.a just find and it linked the app and the app *runs*, it just doesnt find the device!
The libasound.a is broken.
Takashi