ports/net/mosquitto/files/patch-src_CMakeLists.txt
Steve Wills 964f439c25 net/mosquitto: Fails to build with WS option enabled
PR:		220827
Submitted by:	stl@koffein.net
Approved by:	joe@thrallingpenguin.com (maintainer)
2017-08-18 17:03:11 +00:00

26 lines
614 B
Text

--- src/CMakeLists.txt.orig 2016-08-17 11:05:14 UTC
+++ src/CMakeLists.txt
@@ -77,6 +77,7 @@ if (WIN32 OR CYGWIN)
endif (WIN32 OR CYGWIN)
add_definitions (-DWITH_BROKER)
+add_definitions (-DWITH_THREADING)
add_executable(mosquitto ${MOSQ_SRCS})
@@ -86,7 +87,7 @@ if (UNIX)
if (APPLE)
set (MOSQ_LIBS ${MOSQ_LIBS} dl m)
else (APPLE)
- set (MOSQ_LIBS ${MOSQ_LIBS} rt dl m)
+ set (MOSQ_LIBS ${MOSQ_LIBS} rt m)
endif (APPLE)
endif (UNIX)
@@ -127,6 +128,5 @@ if (${WITH_TLS} STREQUAL ON)
endif (${WITH_TLS} STREQUAL ON)
if (UNIX)
- install(CODE "EXEC_PROGRAM(/sbin/ldconfig)")
endif (UNIX)