From: Andre Noll Date: Mon, 21 Dec 2009 18:27:10 +0000 (+0100) Subject: Add -lm to the audiod ldflags. X-Git-Tag: v0.4.1~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=e40b89b792ee7c8f0fe7ebc7b4aa62444dedd458 Add -lm to the audiod ldflags. 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. --- diff --git a/configure.ac b/configure.ac index da9c5dbc..9c2fe5b2 100644 --- a/configure.ac +++ b/configure.ac @@ -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)"