[alsa-devel] [PATCH 1/3] Link arcam-av module against libpthread.

Takashi Iwai tiwai at suse.de
Thu May 16 10:30:26 CEST 2013


At Wed, 15 May 2013 19:11:46 +0200,
Jordi Mallach wrote:
> 
> From: Steve Langasek <steve.langasek at canonical.com>
> 
> The arcam-av module uses libpthread, so it should pass -pthread explicitly
> when building in order to avoid leaving any undefined symbols or missing
> symbol versioning info.
> 
> Signed-off-by: Jordi Mallach <jordi at debian.org>
> ---
>  arcam-av/Makefile.am |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arcam-av/Makefile.am b/arcam-av/Makefile.am
> index 5c7855f..eeb2e90 100644
> --- a/arcam-av/Makefile.am
> +++ b/arcam-av/Makefile.am
> @@ -3,7 +3,7 @@ asound_module_ctl_arcam_av_LTLIBRARIES = libasound_module_ctl_arcam_av.la
>  asound_module_ctl_arcam_avdir = @ALSA_PLUGIN_DIR@
>  
>  AM_CFLAGS = -Wall -g @ALSA_CFLAGS@
> -AM_LDFLAGS = -module -avoid-version -export-dynamic -no-undefined
> +AM_LDFLAGS = -module -avoid-version -export-dynamic -no-undefined -pthread

Is AM_LDFLAGS the right place to add -lXXX?  It'd work, but...


Takashi

>  
>  libasound_module_ctl_arcam_av_la_SOURCES = ctl_arcam_av.c arcam_av.c arcam_av.h
>  libasound_module_ctl_arcam_av_la_LIBADD = @ALSA_LIBS@
> -- 
> 1.7.10.4
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


More information about the Alsa-devel mailing list