From e40b89b792ee7c8f0fe7ebc7b4aa62444dedd458 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 21 Dec 2009 19:27:10 +0100 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" -- 2.39.5