]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Link against libz if compiling with libid3tag support.
authorAndre Noll <maan@systemlinux.org>
Tue, 13 Mar 2012 15:37:36 +0000 (16:37 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 18 Mar 2012 20:13:21 +0000 (21:13 +0100)
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

index 094c4062e1837ab19c47209ba1b9777af4c3b46a..ad4a5565063b2ac728f540afe0348d2d78b3cfb3 100644 (file)
@@ -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])