From 799e250bbc9cf89bb09b7cfa4afbc4dbb9a46657 Mon Sep 17 00:00:00 2001 From: z3bra Date: Thu, 2 Mar 2017 22:39:21 +0100 Subject: Explicitely list all libs in LDLIBS This allow statically linking the binary by simply overriding LDFLAGS. --- config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.mk') 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 -- cgit v1.2.3