build: ldflags conversion: libfaad.
authorAndre Noll <maan@systemlinux.org>
Fri, 13 Sep 2013 05:47:41 +0000 (05:47 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 1 Dec 2013 10:51:58 +0000 (11:51 +0100)
This adds the linker flags for libfaad to LDFLAGS in Makefile.in
for those targets that need it. This avoids some duplication in
configure.ac. No cppflags conversion in this patch.

Makefile.in
configure.ac

index 643075941d3453bfc84ca186aac7e4dc173458b3..5a255a777eb572073826d424488f219d937bde55 100644 (file)
@@ -27,6 +27,7 @@ ogg_ldflags := @ogg_ldflags@
 vorbis_ldflags := @vorbis_ldflags@
 speex_ldflags := @speex_ldflags@
 opus_ldflags := @opus_ldflags@
+faad_ldflags := @faad_ldflags@
 
 build_date := $(shell date)
 uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
@@ -268,8 +269,12 @@ para_audiod \
 para_play \
 para_afh \
 para_recv \
-: LDFLAGS += $(ogg_ldflags) $(vorbis_ldflags) $(speex_ldflags) $(opus_ldflags)
-
+: LDFLAGS += \
+       $(ogg_ldflags) \
+       $(vorbis_ldflags) \
+       $(speex_ldflags) \
+       $(opus_ldflags) \
+       $(faad_ldflags)
 
 para_recv: $(recv_objs)
        @[ -z "$(Q)" ] || echo 'LD $@'
index 82a0d8cb4e2cf3d7594cc5d4684f115fa748b065..50beb2e91b0627574ee268f51e88f1a8b70a7730 100644 (file)
@@ -708,6 +708,10 @@ AC_CHECK_HEADER(neaacdec.h, [], have_faad=no)
 AC_CHECK_LIB([faad], [NeAACDecOpen], [], have_faad=no)
 if test "$have_faad" = "yes"; then
        AC_DEFINE(HAVE_FAAD, 1, define to 1 if you want to build the aacdec filter)
+       AC_SUBST(faad_cppflags)
+       faad_ldflags="$faad_libs -lfaad"
+       AC_SUBST(faad_ldflags)
+
        filter_errlist_objs="$filter_errlist_objs aacdec_filter aac_common"
        afh_errlist_objs="$afh_errlist_objs aac_common aac_afh"
        audiod_errlist_objs="$audiod_errlist_objs aacdec_filter aac_common"
@@ -715,17 +719,9 @@ if test "$have_faad" = "yes"; then
        server_errlist_objs="$server_errlist_objs aac_afh aac_common"
        recv_errlist_objs="$recv_errlist_objs aac_afh aac_common"
 
-       server_ldflags="$server_ldflags $faad_libs -lfaad"
-       filter_ldflags="$filter_ldflags $faad_libs -lfaad"
-       audiod_ldflags="$audiod_ldflags $faad_libs -lfaad"
-       play_ldflags="$play_ldflags $faad_libs -lfaad"
-       afh_ldflags="$afh_ldflags $faad_libs -lfaad"
-       recv_ldflags="$afh_ldflags $faad_libs -lfaad"
-
        audiod_audio_formats="$audiod_audio_formats aac"
        audio_format_handlers="$audio_format_handlers aac"
        filters="$filters aacdec"
-       AC_SUBST(faad_cppflags)
 else
        AC_MSG_WARN([no aac support in para_audiod/para_filter])
 fi