mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-11-25 19:59:32 +01:00
fix(mosq): Fix unpwd-check wrap function
This commit is contained in:
@@ -92,7 +92,7 @@ target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||
|
||||
# Enable linker wrapping for mosquitto_unpwd_check to allow connection callback interception
|
||||
# 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
|
||||
# producing warning: "_GNU_SOURCE" redefined
|
||||
|
||||
Reference in New Issue
Block a user