Skip to content

Commit ba3377b

Browse files
committed
fix(mosq): Fix unpwd-check wrap function
1 parent e5bed39 commit ba3377b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mosquitto/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
9292

9393
# Enable linker wrapping for mosquitto_unpwd_check to allow connection callback interception
9494
# without modifying upstream code
95-
target_link_options(${COMPONENT_LIB} PRIVATE "-Wl,--wrap=mosquitto_unpwd_check")
95+
target_link_options(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=mosquitto_unpwd_check")
9696

9797
# Some mosquitto source unconditionally define `_GNU_SOURCE` which collides with IDF build system
9898
# producing warning: "_GNU_SOURCE" redefined

0 commit comments

Comments
 (0)