[alsa-devel] is statically linking libasound supported? because if i do it, i cant open the device!
John Utz
John.Utz at dmx.com
Wed Mar 28 19:15:02 CEST 2007
-----Original Message-----
From: Takashi Iwai [mailto:tiwai at suse.de]
> 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.
* Well, I meant the libasound.a you made is broken.
* When you build libasound.a without --disable-shared, it passes -DPIC
* and it's built with assumption of shared library use.
AHH! thankyou for explaining that! i am greatful for the increase in my understanding of library compilation 'dynamics' (for want of a better term :-) )
tnx for the 'schoolin''
i'll report back on my outcome.
Takashi
More information about the Alsa-devel
mailing list