Description: Fix FTBFS due to indirect linking
Author: Andreas Moog <amoog@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/749143
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618068

--- a/Makefile.in
+++ b/Makefile.in
@@ -8,6 +8,7 @@ sysconfdir=${DESTDIR}/@sysconfdir@
 
 
 AUDACIOUS_CFLAGS=@AUDACIOUS_CFLAGS@ -I/usr/include/dbus-1.0
+LDADD=-ldbus-glib-1 -lncursesw -laudclient -lglib-2.0 -lgobject-2.0
 
 SOURCES=main.c curses_printf.c playlist.c playlist_jump.c playlist_addurl.c settings.c connect.c browse.c playlist_create.c
 BINS=$(SOURCES:.c=.o)
@@ -17,7 +18,7 @@ build: audtty
 all: audtty
 
 audtty: ${BINS}
-	cc -g -O2 -g2 -Wall -Werror -lncursesw -laudclient ${LDFLAGS} -o audtty $(BINS)
+	cc -g -O2 -g2 -Wall -Werror ${LDFLAGS} -o audtty $(BINS) $(LDADD)
 
 .c.o:
 	cc -g -Wall ${AUDACIOUS_CFLAGS} ${CFLAGS} -o $@ -c $<
