diff --git a/Makefile b/Makefile
index 5e19d0a..96c6ff3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ DEPS=libtoxcore
 CC=gcc
 CFLAGS=-g #-std=c99
 CFLAGS += $(shell pkg-config --cflags $(DEPS))
-LDFLAGS=-g -pthread -lm -static -lrt
+LDFLAGS=-g -pthread -lm -lrt
 LDFLAGS += $(shell pkg-config --libs $(DEPS))
 OBJECTS=$(SOURCES:.c=.o)
 INCLUDES = $(wildcard *.h)
@@ -19,7 +19,7 @@ gitversion.c: gitversion.h
 	$(CC) $(CFLAGS) $< -c -o $@
 
 tuntox: $(OBJECTS) $(INCLUDES)
-	$(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) /usr/local/lib/libsodium.a /usr/local/lib/libtoxcore.a
+	$(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) -lsodium
 
 cscope.out:
 	cscope -bv ./*.[ch]