mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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> |
||
|---|---|---|
| .. | ||
| include_override | ||
| .keep | ||
| colcon.meta.in | ||
| toolchain.cmake.in | ||