fix(mosq): Fix unpwd-check wrap function

This commit is contained in:
David Cermak
2025-11-12 11:44:55 +01:00
parent e5bed394ee
commit ba3377b262

View File

@@ -92,7 +92,7 @@ target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
# Enable linker wrapping for mosquitto_unpwd_check to allow connection callback interception # Enable linker wrapping for mosquitto_unpwd_check to allow connection callback interception
# without modifying upstream code # without modifying upstream code
target_link_options(${COMPONENT_LIB} PRIVATE "-Wl,--wrap=mosquitto_unpwd_check") target_link_options(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=mosquitto_unpwd_check")
# Some mosquitto source unconditionally define `_GNU_SOURCE` which collides with IDF build system # Some mosquitto source unconditionally define `_GNU_SOURCE` which collides with IDF build system
# producing warning: "_GNU_SOURCE" redefined # producing warning: "_GNU_SOURCE" redefined