From 0698e02bd9d4c6aa8e0de5691c7c1013794f510c Mon Sep 17 00:00:00 2001 From: latex Date: Sun, 5 Feb 2023 01:39:43 +0100 Subject: add uv_link_t to linker and re-use libraries for tests --- config.mk | 4 ++-- tests/Makefile | 4 ++-- 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 -- cgit