From 97400f86dcca45ff2a6c1e60d5f47f613fb2782f Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Mon, 13 Feb 2023 23:37:10 +0100 Subject: [PATCH] net/mosquitto: Link with correct library type when using websockets option Libwebsockets refers to static library as websockets and shared as websockets_shared. Currently it causes shared option in mosuitto to link with static library and static option doesn't work at all. PR: 269536 Reviewed by: Joseph Benden (maintainer) --- net/mosquitto/files/patch-src_CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net/mosquitto/files/patch-src_CMakeLists.txt diff --git a/net/mosquitto/files/patch-src_CMakeLists.txt b/net/mosquitto/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..c268f901f8f0 --- /dev/null +++ b/net/mosquitto/files/patch-src_CMakeLists.txt @@ -0,0 +1,18 @@ +--- src/CMakeLists.txt.orig 2023-02-13 19:40:35 UTC ++++ src/CMakeLists.txt +@@ -194,13 +194,13 @@ endif (WIN32) + + if (WITH_WEBSOCKETS) + if (STATIC_WEBSOCKETS) +- set (MOSQ_LIBS ${MOSQ_LIBS} websockets_static) ++ set (MOSQ_LIBS ${MOSQ_LIBS} websockets) + if (WIN32) + set (MOSQ_LIBS ${MOSQ_LIBS} iphlpapi) + link_directories(${mosquitto_SOURCE_DIR}) + endif (WIN32) + else (STATIC_WEBSOCKETS) +- set (MOSQ_LIBS ${MOSQ_LIBS} websockets) ++ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared) + endif (STATIC_WEBSOCKETS) + endif (WITH_WEBSOCKETS) +