From 603107b87af47a52b6daa38f63383440fa919441 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Tue, 2 Feb 2021 13:37:24 +0000 Subject: [PATCH] Fix build of mosquitto_ctrl with static only libs. --- apps/mosquitto_ctrl/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/mosquitto_ctrl/Makefile b/apps/mosquitto_ctrl/Makefile index c351f9b9..286eb449 100644 --- a/apps/mosquitto_ctrl/Makefile +++ b/apps/mosquitto_ctrl/Makefile @@ -5,8 +5,12 @@ include ../../config.mk ifeq ($(WITH_SHARED_LIBRARIES),yes) LIBMOSQ:=../../lib/libmosquitto.so.${SOVERSION} else +ifeq ($(WITH_THREADING),yes) +LIBMOSQ:=../../lib/libmosquitto.a -lpthread -lssl -lcrypto +else LIBMOSQ:=../../lib/libmosquitto.a endif +endif LOCAL_CPPFLAGS:=-I../mosquitto_passwd @@ -25,7 +29,6 @@ OBJS= mosquitto_ctrl.o \ EXAMPLE_OBJS= example.o ifeq ($(WITH_TLS),yes) - ifeq ($(WITH_CJSON),yes) TARGET:=mosquitto_ctrl mosquitto_ctrl_example.so else