git: 97400f86dcca - main - net/mosquitto: Link with correct library type when using websockets option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Feb 2023 22:47:32 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=97400f86dcca45ff2a6c1e60d5f47f613fb2782f
commit 97400f86dcca45ff2a6c1e60d5f47f613fb2782f
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-02-13 22:37:10 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-02-13 22:47:19 +0000
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 <joe@thrallingpenguin.com> (maintainer)
---
net/mosquitto/files/patch-src_CMakeLists.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
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)
+