tExplicitely list all libs in LDLIBS - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 799e250bbc9cf89bb09b7cfa4afbc4dbb9a46657
(DIR) parent 3a0b00460b6e82d920d360accdbe19d09548b7f7
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Thu, 2 Mar 2017 22:39:21 +0100
Explicitely list all libs in LDLIBS
This allow statically linking the binary by simply overriding LDFLAGS.
Diffstat:
M Makefile | 2 +-
M config.mk | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -33,7 +33,7 @@ nodes.h:
.o:
@echo LD $@
- @$(LD) -o $@ $< util.a $(LDFLAGS)
+ @$(LD) -o $@ $< util.a $(LDFLAGS) $(LDLIBS)
.c.o:
@echo CC $<
(DIR) diff --git a/config.mk b/config.mk
t@@ -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