Skip to content

Commit b1b6983

Browse files
committed
Explicitly link mosquitto with libld and libpthread
1 parent 661e4c8 commit b1b6983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mqtt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ endif()
1919
add_library(driver SHARED driver.c)
2020

2121
if( DEFINED STATIC_BUILD )
22-
unset(CMAKE_C_FLAGS)
22+
set(CMAKE_C_FLAGS "-ldl -lpthread")
2323
add_subdirectory(../third_party/mosquitto ../third_party/mosquitto/build)
2424
include_directories(../third_party/mosquitto/lib)
2525
if( STATIC_BUILD )

0 commit comments

Comments
 (0)