about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorlatex <latex@disroot.org>2023-02-05 01:39:43 +0100
committerlatex <latex@disroot.org>2023-02-05 02:39:07 +0100
commit0698e02bd9d4c6aa8e0de5691c7c1013794f510c (patch)
treeeac9e27a087c6d77a5da1efbe36b040009a9aa3e
parent34ed09145e4ee3e7fea1c20ef41c6962d2f396b0 (diff)
downloadlibumumble-add-tls.tar.gz
add uv_link_t to linker and re-use libraries for tests add-tls
-rw-r--r--config.mk4
-rw-r--r--tests/Makefile4
2 files changed, 4 insertions, 4 deletions
diff --git a/config.mk b/config.mk
index 82cbaf1..18edba8 100644
--- a/config.mk
+++ b/config.mk
@@ -9,8 +9,8 @@ DNAME = $(NAME).so
 
 CFLAGS = -W -Wall -Wvla -std=gnu99 -g -fPIC
 CFLAGS += $(shell pkg-config --cflags libuv)
-LDLIBS = -ltlsuv
-LDLIBS += -lmbedtls -lmbedcrypto -lmbed509
+LDLIBS = -ltlsuv -luv_link_t
+LDLIBS += -lmbedtls -lmbedcrypto -lmbedx509
 LDLIBS += $(shell pkg-config --libs libuv)
 NANOPB_DIR = deps/nanopb
 
diff --git a/tests/Makefile b/tests/Makefile
index 9c8e568..95a146b 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -4,8 +4,8 @@ INCLUDES = -I../include
 SRC = $(shell find -type f -name '*.c')
 BIN = $(SRC:%.c=%)
 
-LDLIBS = -l:libumumble.a -ltlsuv $(shell pkg-config --libs openssl) -luv
-LDFLAGS = -L..
+LDLIBS := -l:libumumble.a $(LDLIBS)
+LDFLAGS += -L..
 
 .PHONY: all