From 902ec3df25e1095b2a5c83d03ef6a1016e79d2f1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 13 Mar 2012 16:37:36 +0100 Subject: [PATCH] Link against libz if compiling with libid3tag support. libid3tag depends on libz. On Linux, libz is automatically linked to para_server and para_afh but at least on FreeBSD compilation fails due to undefined references to "uncompress" and "compress2". This patch explicitly adds -lz to $server_ld_flags and $afh_ldflags if libid3tag was detected. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 094c4062..ad4a5565 100644 --- a/configure.ac +++ b/configure.ac @@ -753,8 +753,8 @@ AC_MSG_RESULT($have_libid3tag) if test ${have_libid3tag} = yes; then AC_DEFINE(HAVE_LIBID3TAG, 1, define to 1 you have libid3tag) - server_ldflags="$server_ldflags $id3tag_libs -lid3tag" - afh_ldflags="$afh_ldflags $id3tag_libs -lid3tag" + server_ldflags="$server_ldflags $id3tag_libs -lid3tag -lz" + afh_ldflags="$afh_ldflags $id3tag_libs -lid3tag -lz" AC_SUBST(id3tag_cppflags) else AC_MSG_WARN([no support for id3v2 tags]) -- 2.39.5