Skip to content
Browse files

Makefile: added LIBS=-lrt -plthread

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
1 parent 8b97319 commit 262ea5e9440264ab08c8d6433789e1b6063ec311 @trofi committed Mar 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
View
3 Makefile
@@ -1,4 +1,5 @@
CFLAGS += -std=gnu99 -Wall -Wwrite-strings -pthread
+LIBS = -lrt -lpthread
ENDIAN_CFLAGS=
PREFIX ?= /usr/local
@@ -35,7 +36,7 @@ install: $(BINARY)
install -m 755 $(BINARY) $(DESTDIR)$(PREFIX)/bin
$(BINARY): $(OBJECTS) bin
- $(QUIET_LINK)$(CC) $(OBJECTS) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) -o $@
+ $(QUIET_LINK)$(CC) $(OBJECTS) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) -o $@ $(LIBS)
src/%.o : src/%.c
$(QUIET_CC)$(CC) $(CFLAGS) $(XMMS_CFLAGS) $(CURL_CFLAGS) $(ENDIAN_CFLAGS) -o $@ -c $<

0 comments on commit 262ea5e

Please sign in to comment.
Something went wrong with that request. Please try again.