Package: xmms2-scrobbler / 0.4.0-3

fix-linker-failure.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Fix FTBFS with binutils-gold.
Author: Benjamin Drung <bdrung@debian.org>
Bug-Debian: http://bugs.debian.org/556713

--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
 VERSION := 0.4.0
 TARBALL := xmms2-scrobbler-$(VERSION).tar.gz
 
+LIBS := -lpthread -lrt
 XMMS_CFLAGS := `pkg-config xmms2-client --cflags`
 XMMS_LIBS := `pkg-config xmms2-client --libs`
 CURL_CFLAGS := `pkg-config libcurl --cflags`
@@ -35,7 +36,7 @@
 	install -m 755 $(BINARY) $(DESTDIR)$(PREFIX)/bin
 
 $(BINARY): $(OBJECTS) bin
-	$(QUIET_LINK)$(CC) $(LDFLAGS) $(OBJECTS) $(XMMS_LIBS) $(CURL_LIBS) -o $@
+	$(QUIET_LINK)$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) $(XMMS_LIBS) $(CURL_LIBS) -o $@
 
 src/%.o : src/%.c
 	$(QUIET_CC)$(CC) $(CFLAGS) $(XMMS_CFLAGS) $(CURL_CFLAGS) $(ENDIAN_CFLAGS) -o $@ -c $<