From b80b81adae9d4568f305420fb7db3601de5726c0 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Thu, 2 Apr 2009 12:17:24 +0200 Subject: [PATCH] Don't clobber LIBS with -ldl --- configure.in | 3 ++- src/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 94a55d0e..f0e3e8c1 100644 --- a/configure.in +++ b/configure.in @@ -124,7 +124,8 @@ AC_PROG_GCC_TRADITIONAL AC_TYPE_SIGNAL AC_CHECK_FUNCS(select socket strdup strerror) -AC_CHECK_LIB(dl,dlsym) +AC_CHECK_LIB(dl, dlsym, LIBDL=-ldl) +AC_SUBST(LIBDL) dnl check to see if we need -lsocket (solaris) V_NETLIBS="" diff --git a/src/Makefile.am b/src/Makefile.am index 50c7b44c..ff8e12c0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,7 +21,7 @@ endif mt_daapd_CPPFLAGS = @AVAHI_CFLAGS@ @SQLITE3_CFLAGS@ @ID3TAG_CFLAGS@ @OGGVORBIS_CFLAGS@ @TAGLIB_CFLAGS@ -mt_daapd_LDADD = @AVAHI_LIBS@ @SQLITE3_LIBS@ @ID3TAG_LIBS@ @OGGVORBIS_LIBS@ @FLAC_LIBS@ @TAGLIB_LIBS@ @LIBICONV@ +mt_daapd_LDADD = @AVAHI_LIBS@ @SQLITE3_LIBS@ @ID3TAG_LIBS@ @OGGVORBIS_LIBS@ @FLAC_LIBS@ @TAGLIB_LIBS@ @LIBICONV@ @LIBDL@ mt_daapd_SOURCES = main.c daapd.h rend.h webserver.c \ webserver.h configfile.c configfile.h err.c err.h \ mp3-scanner.h mp3-scanner.c \