summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--config.mk3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 767d8ab..c5765cb 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ nodes.h:
.o:
@echo LD $@
- @$(LD) -o $@ $< util.a $(LDFLAGS)
+ @$(LD) -o $@ $< util.a $(LDFLAGS) $(LDLIBS)
.c.o:
@echo CC $<
diff --git a/config.mk b/config.mk
index 8f15a5a..43c789e 100644
--- a/config.mk
+++ b/config.mk
@@ -9,4 +9,5 @@ CC = cc
LD = $(CC)
CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS = -g -I/usr/local/include -Wall -Wunused $(CPPFLAGS)
-LDFLAGS = -g -L/usr/local/lib -ltoxcore -ltoxav -ltoxencryptsave
+LDFLAGS = -g -L/usr/local/lib
+LDLIBS = -ltoxcore -ltoxav -ltoxencryptsave -lsodium -lopus -lvpx -lm -lpthread