]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Add -lm to the audiod ldflags.
authorAndre Noll <maan@systemlinux.org>
Mon, 21 Dec 2009 18:27:10 +0000 (19:27 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 21 Dec 2009 18:27:10 +0000 (19:27 +0100)
Depending on the set of installed (optional) libraries, para_audiod gets or
does not get automatically linked against the math library. However, we always
need this lib as the wma decoder is always supported and uses trigonometric
functions.

If -lm is not automatically included, linking fails with many errors of the form

imdct.c:79: error: 'cos_16' undeclared here (not in a function)

Fix this problem by explicitely adding -lm to audiod's ldflags, just as we
do for para_filter as well.

configure.ac

index da9c5dbcc928a650fe4ebe9c9b0447e070d712d9..9c2fe5b225e64cb1623bc3143bfd3d10e5e658fb 100644 (file)
@@ -122,7 +122,7 @@ audiod_errlist_objs="audiod signal string daemon stat net
        recv_common fd sched write_common file_write audiod_command crypt fecdec_filter
        client_common ggo udp_recv color fec prebuffer_filter sha1 audiod_command_list
        bitstream imdct wma_common wmadec_filter"
-audiod_ldflags=""
+audiod_ldflags="-lm"
 audiod_audio_formats="wma"
 
 afh_cmdline_objs="add_cmdline(afh)"