]> git.tue.mpg.de Git - paraslash.git/commitdiff
build: ldflags conversion: alsa.
authorAndre Noll <maan@systemlinux.org>
Fri, 13 Sep 2013 06:07:09 +0000 (06:07 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 1 Dec 2013 10:51:58 +0000 (11:51 +0100)
Again, a straight-forward transformation.

Makefile.in
configure.ac

index f329b65a879d7c9bd046f2ca9d6f18db8b36469e..9c9f1f15eb1c36ecb4aa603f3a8d87f65342281c 100644 (file)
@@ -31,6 +31,7 @@ faad_ldflags := @faad_ldflags@
 mad_ldflags := @mad_ldflags@
 flac_ldflags := @flac_ldflags@
 oss_ldflags := @oss_ldflags@
+alsa_ldflags := @alsa_ldflags@
 
 build_date := $(shell date)
 uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
@@ -266,7 +267,14 @@ endif
 
 para_recv para_afh para_play para_server: LDFLAGS += $(id3tag_ldflags)
 para_audiod para_filter para_play: LDFLAGS += $(mad_ldflags)
-para_write para_play para_audiod para_fade: LDFLAGS += $(oss_ldflags)
+
+para_write \
+para_play \
+para_audiod \
+para_fade \
+: LDFLAGS += \
+       $(oss_ldflags) \
+       $(alsa_ldflags)
 
 para_server \
 para_filter \
index 4d0501b5534df5d9dc4b8bc195c4f0e20199d28d..9d2edaaf863e058bd73076ce04dfa51bdba74ea0 100644 (file)
@@ -911,18 +911,16 @@ if test "$have_alsa" = "yes"; then
 fi
 
 if test "$have_alsa" = "yes"; then
+       alsa_ldflags="-lasound"
+       AC_SUBST(alsa_ldflags)
        audiod_errlist_objs="$audiod_errlist_objs alsa_write"
        audiod_cmdline_objs="$audiod_cmdline_objs alsa_write"
-       audiod_ldflags="$audiod_ldflags -lasound"
        play_errlist_objs="$play_errlist_objs alsa_write"
        play_cmdline_objs="$play_cmdline_objs alsa_write"
-       play_ldflags="$play_ldflags -lasound"
 
        write_errlist_objs="$write_errlist_objs alsa_write"
        write_cmdline_objs="$write_cmdline_objs alsa_write"
-       write_ldflags="$write_ldflags -lasound"
        fade_errlist_objs="$fade_errlist_objs alsa_mix"
-       fade_ldflags="$fade_ldflags -lasound"
 
        writers="$writers alsa"
        default_writer="ALSA_WRITE"