Skip to content

Commit 661e4c8

Browse files
committed
Enable -fPIC option when building static mosquitto
When linking static mosquitto into shared mqtt, we need static mosquitto to be built with -fPIC option enabled
1 parent b2cf2c2 commit 661e4c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mqtt/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ option(WITH_STATIC_LIBRARIES "Build static versions of the libmosquitto/pp libra
77

88
if( STATIC_BUILD )
99
set(WITH_STATIC_LIBRARIES ON)
10+
set(WITH_PIC ON)
1011
set(OPENSSL_USE_STATIC_LIBS ON)
1112
endif()
1213

0 commit comments

Comments
 (0)