[alsa-devel] [Alsa-devel] Static build of alsa-lib

Takashi Iwai tiwai at suse.de
Thu Mar 22 01:05:24 CET 2007


At Thu, 22 Mar 2007 00:45:23 +0100,
I wrote:
> 
> At Wed, 21 Mar 2007 12:00:23 -0700 (PDT),
> Ciaccia wrote:
> > 
> > Hi Takashi,
> > I have just tried the patch you provided me. I applied
> > the patch and then I configured alsa-lib as following:
> > 
> > ./configure --enable-static --disable-shared
> > --disable-mixer --disable-hwdep --disable-rawmidi
> > --disable-seq --disable-instr --disable-alisp
> > --with-pcm-plugins=no --with-libdl=no
> > --with-pthread=no 
> > 
> > The compilation works fine, ant the static library is
> > created. When I try to link my application to it, I
> > get the following warning:
> > 
> > ~/alsa $ gcc -Wall -O2 -o test test.c
> > -L/tmp/alsa-lib-hg20070317/src/.libs/ -lasound -static
> > 
> > /tmp/alsa-lib-hg20070317/src/.libs/libasound.a(control_shm.o):
> > In function `_snd_ctl_shm_open':
> > /tmp/alsa-lib-hg20070317/src/control/control_shm.c:664:
> > warning: Using 'gethostbyname' in statically linked
> > applications requires at runtime the shared libraries
> > from the glibc version used for linking
> 
> This is actually a glibc issue.  You don't care about it at all.
> (control_shm is very unlikely used, so it can be trimmed down in the
>  future version.)

FYI, I applied this patch to ALSA HG tree right now.


Takashi



More information about the Alsa-devel mailing list