nuttx-apps/system/microros/micro_ros_lib
Arjav Patel 3d6ea0ccec system/microros: Fix toolchain attribute strip breaking libc inlines.
micro_ros_lib/toolchain.cmake.in initialised C and CXX flags with
-D'__attribute__(x)=' to silence GCC attributes the upstream ament
build is not aware of. The strip also removed __gnu_inline__ and
__always_inline__ from NuttX's libc string.h inlines, so each
micro-ROS translation unit emitted external definitions of strcmp,
strcpy, strlen and friends. Sim final link then failed with ~50
multiple-definition errors.

Drop the define from both flag init lines so the attributes survive
and the inlines collapse as intended.

Signed-off-by: Arjav Patel <arjav1528@gmail.com>
2026-06-02 00:15:25 +08:00
..
include_override apps/system/microros: add CMake cross-compile toolchain template. 2026-05-26 06:57:55 +08:00
.keep apps/system/microros: add micro_ros_lib directory skeleton. 2026-05-26 06:57:55 +08:00
colcon.meta.in apps/system/microros: add colcon.meta.in resource-limit template. 2026-05-26 06:57:55 +08:00
toolchain.cmake.in system/microros: Fix toolchain attribute strip breaking libc inlines. 2026-06-02 00:15:25 +08:00